Skip to content
Snippets Groups Projects
Erick Hitter's avatar
Erick Hitter authored
a6eb5f1a

s3-object-expirer

Expire (delete) S3 objects older than a given age.

Usage

  1. Copy ./config/example.s3cfg to ./config/.s3cfg and enter your bucket details.
  2. Create ./config/bucket with the name of the bucket to purge.
  3. Create ./config/expire_age_days with a number that specifies the maximum age of items in the bucket. Anything created more than that many days ago will be purged.
  4. docker-compose up