Python for DevOps
You're viewing a free preview. Sign in free to read every script.
Why this exists Build artifacts, nightly backups, and exported reports pile up in object storage the same way log files pile up on a disk — except there's no OS level warning when a bucket gets expensive, only a bill at…
S3 Bucket Cleanup by Retention Age
Deletes objects under an S3 prefix older than a retention window, in batches, with a dry-run mode — for cases where a native S3 lifecycle rule can't express the logic you need.
Sign in free to read this script, along with the rest of the library.
Sign in free