Post
The free guardrail: aws ecr start-lifecycle-policy-preview, poll to COMPLETE, get-lifecycle-policy-preview into would_expire.txt. Then: comm -12 would_expire.txt inuse_all.txt. Any output = repo fails to a human with digests + workloads. No 'raise the count and retry' loop.
0 reposts0 likes
Full build: collector, in-use set from every consumer, classifier, the prompt, preview diff, and the limits list for the PR template: https://devtocash.com/blog/2026-10-16-ecr-cost-agent-untagged-images-lifecycle-policies-images-no-cluster-runs #AWS #FinOps #Kubernetes #DevOps
devtocash.comBuild an ECR Cost Agent: Expire Untagged and Never-Pulled Images, Generate Lifecycle Policies, and Prove No Cluster Still Runs What You DeleteBuild an ECR cost agent: find untagged and never-pulled images, prove nothing runs them, generate lifecycle policies, preview expirations, and ship them as PRs.