ecr

Manage Amazon ECR repositories and images using the AWS CLI.

3|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/david-2814/claw-aws --skill ecr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ecr
Source: https://github.com/david-2814/claw-aws/tree/main/skills/ecr
Command: npx skills add https://github.com/david-2814/claw-aws --skill ecr

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines Amazon ECR repository and image management using the AWS CLI, reducing manual steps and configuration drift.

Core Features & Use Cases

  • Repository management: create, describe, and delete repositories; configure image tag immutability and encryption.
  • Image operations: push, pull, describe, and tag images; view and manage tags and digests.
  • Policy & scanning: configure lifecycle policies, set cross-account access, and enable image scanning for vulnerabilities.
  • Use Case: Deploy a CI/CD workflow that builds an image, pushes to a centralized ECR repository, and enforces lifecycle rules and scanning before production.

Quick Start

Create a new repository, push an image, and configure a lifecycle policy.

Frequently Asked Questions about ecr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Amazon ECR repositories and push Docker images using the AWS CLI?

To manage Amazon ECR repositories and push Docker images, you can create a repository and push images directly using AWS CLI commands. This streamlines container workflows by reducing manual steps across regions.

How do I configure lifecycle policies in Amazon ECR to automate image cleanup?

Configuring lifecycle policies in Amazon ECR automates image cleanup by applying rules to expire untagged or old images. This is managed through AWS CLI commands to enforce retention and reduce storage drift.

Can I enable image scanning in Amazon ECR to check for vulnerabilities before deployment?

Yes, you can enable image scanning in Amazon ECR to identify software vulnerabilities before deployment. This feature scans pushed Docker images and returns findings, ensuring secure CI/CD workflows.

Do I need Docker and AWS CLI v2 installed to operate Amazon ECR image operations?

Yes, you need Docker installed for local image operations and AWS CLI v2 configured with credentials and permissions for ecr:* to manage ECR repositories, push images, and apply policies.

What is the best way to set up cross-account access for an Amazon ECR repository?

The best way to set up cross-account access for an Amazon ECR repository is by configuring repository policies via the AWS CLI. This grants explicit pull or push permissions to external AWS accounts.

How does enforcing image tag immutability prevent accidental overwrites in Amazon ECR?

Enforcing image tag immutability in Amazon ECR prevents overwriting existing image tags on subsequent pushes. This configuration ensures consistent deployments by blocking tag updates for images already in the registry.