Cloud Custodian

July 5, 2026 ยท View on GitHub

Use Cloud Custodian or an equivalent scheduled job to clean resources that can outlive failed runner jobs, image builds, or tests.

What To Manage

ResourceWhy
old runner AMIsPrevent unbounded image growth.
AMI snapshotsAvoid storage cost after AMI deletion.
stale EC2 instancesCatch failed termination paths.
stale launch templatesRemove leftovers from runner experiments.
old ECR tagsKeep artifact repositories manageable.
untagged resourcesPreserve ownership and cost attribution.

Blueprint

Copy from:

docs/operations/repo-blueprints/cloud-custodian
docs/operations/workflows/scheduled-maintenance.md

Run cleanup jobs in audit mode first. Move to destructive mode only after the policy output is reviewed.