ECR waste check
ECR No Lifecycle Policy
ecr_no_lifecycle_policy
What it finds
Finds container repositories with no cleanup rule, so every old image keeps billing for storage.
One of the ECR checks, in the storage optimization group.
How it is detected
ECR repo without lifecycle policy
Detection confidence: MEDIUM. This is the criterion from our public docs. It runs in a local scan with your own read-only credentials.
- Signal
- GetLifecyclePolicy for each repository, plus the size of its old and untagged images
- Monthly figure
- The measured size in GB of the repository's old and untagged images multiplied by the per-GB monthly storage price. It is shown as zero when an old or untagged images finding already counts those images.
- How to fix
- Add a lifecycle policy that expires untagged and old images.
- In the docs
- This check in the detector reference
AWS's own tools
AWS flags this too, under "Amazon ECR Repository without lifecycle policy configured".
Checked against the AWS documentation.
Run it yourself
Nothing leaves your machine unless you choose to share a summary at the end.