Reputation: 1746
Is there a way to configure a S3 bucket to be deleted if it hasn't been updated in a set amount of time?
Basically want a bucket to be deleted if it hasn't had any new uploads to it within a set amount of time.
Upvotes: 2
Views: 831
Reputation: 269101
There is no in-built capability to do this.
One method of achieving it would be:
Alternatively...
Are you sure you wish to actually delete a bucket? I presume you have certain 'users' who each have a bucket. Instead of giving each user a bucket, you could:
This is much more scalable than "one bucket per user" because there are limitations on the number of buckets per account, but no limits on the number of directories or objects in one bucket.
Upvotes: 3