ExitAmazon ECR: lifecycle policy evaluation1 / 9
Explanation

Separate selection from action

How lifecycle rules select images for archival or deletion, resolve priorities and dependencies, and support safe changes through previews and auditing. · advanced

An Amazon ECR lifecycle policy manages images in a private repository. A rule selects images, checks retention criteria, and specifies an action. expire deletes images; transition moves them to archive storage. The only supported transition destination is archive.

Selection starts with tag status: tagged, untagged, or any. With any, every image has the rule evaluated against it; this does not mean every image satisfies the retention criteria.

A tagged rule must specify either tagPatternList or tagPrefixList, never both. Different rules in the same policy can use different methods. An untagged rule must omit both lists.