Skill 1.1.8

Manage container images by configuring security scans and lifecycle policies (for example, by using Amazon ECR).

Key Concepts

Scanning: ECR basic scanning checks operating system packages on push or on demand. Enhanced scanning uses Amazon Inspector to scan continuously, covers operating system and programming language packages, and rescans when new vulnerabilities are published; findings go to Inspector, Security Hub and EventBridge, where they can block deployment or notify owners. Registry-level scanning rules apply the setting to repositories by name filter.

Lifecycle policies expire images automatically by age, count or tag status, for example deleting untagged images after 14 days and keeping only the last 30 release tags, which controls storage cost. Tag immutability prevents overwriting a tag such as v1.4.2, so a deployment always runs the image that was tested. Replication rules copy images to other Regions and accounts for disaster recovery and multi-account deployment, and image signing lets deployments verify where an image came from.