get_ecr_cleanup_recommendations
Scan ECR repositories for untagged images older than a configurable threshold and recommend lifecycle policies to auto-expire them, reducing storage costs.
Instructions
Find ECR repositories with old untagged container images consuming storage.
ECR charges $0.10/GB-month for images beyond the free 500MB per repo. Untagged images from old CI builds accumulate quickly. The fix is an ECR lifecycle policy that auto-expires untagged images.
Args: older_than_days: Flag untagged images older than this many days (default 90). regions: AWS regions to scan. Defaults to all opted-in regions.
Examples: - "Which ECR repos have old images wasting storage?" - "Find container image cleanup opportunities" - "How much are old ECR images costing us?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| regions | No | ||
| older_than_days | No |