11ai-operator-aws-cli-v2-ecr

AWS CLI v2 operator

Inspect Amazon ECR repositories, image tags, digests, scan findings, and Docker authentication with reproducible, safety-aware workflows. Use when publishing, pulling, identifying, or troubleshooting container images in ECR.

terminal
$ npx skills add rj11io/11ai --skill 11ai-operator-aws-cli-v2-ecr

Try it — say this to your agent

Use 11ai-operator-aws-cli-v2-ecr for this task.

The full playbook · v0/plugins/11ai-operator-aws-cli-v2/skills/11ai-operator-aws-cli-v2-ecr/SKILL.md

AWS ECR

Version baseline: AWS CLI v2, using the latest stable v2 patch available for the host platform (2.36.x at this review). Reject AWS CLI v1-only behavior and inspect aws --version plus the live v2 command help before composing commands.

Resolve the registry account, region, repository, image tag or digest, and local Docker context before acting. Prefer immutable digests for deployments and do not assume a tag points to the image a user expects.

Inspect repositories and images

aws ecr describe-repositories --repository-names REPOSITORY --profile PROFILE --region REGION
aws ecr list-images --repository-name REPOSITORY --filter tagStatus=ANY --profile PROFILE --region REGION
aws ecr describe-images --repository-name REPOSITORY --image-ids imageTag=TAG --profile PROFILE --region REGION
aws ecr describe-images --repository-name REPOSITORY --image-ids imageDigest=SHA256_DIGEST --profile PROFILE --region REGION
aws ecr describe-image-scan-findings --repository-name REPOSITORY --image-id imageDigest=SHA256_DIGEST --profile PROFILE --region REGION
aws ecr get-lifecycle-policy --repository-name REPOSITORY --profile PROFILE --region REGION

Check repository URI, image digest, pushed time, tags, scan status, encryption, mutability, lifecycle policy, and whether a running ECS or Lambda deployment references the image.

Authenticate Docker

Login changes local Docker credential state and should happen only when requested:

aws ecr get-login-password --region REGION --profile PROFILE \
  | docker login --username AWS --password-stdin ACCOUNT_ID.dkr.ecr.REGION.amazonaws.com

Never echo the password, store it in shell history, or paste it into a prompt. Confirm the registry account and region before login.

Push, pull, and delete

Tag and push only the user’s intended local image and repository. Use the digest from describe-images to verify what was published. batch-delete-image, repository deletion, lifecycle policy changes, and tag overwrites are mutating and may break deployments; show the exact target and impact first.

Do not “fix” a deployment by retagging an unknown image. Compare local image digests, ECR digests, task definitions, and rollout timestamps, then verify the consumer after an approved change.

Want the source?

This page renders the skill's markdown straight from the repository.

Open on GitHub
More AWS CLI v2 operator skills