Waqar Ahmed
Waqar Ahmed

Reputation: 5068

Move least frequent S3 buckets to glacier automatically

Is there anyway to move less frequent S3 buckets to glacier automatically? I mean to say, some option or service searches on S3 with least access date and then assign lifecycle policy to them, so they can be moved to glacier? or I have to write a program to do this? If this not possible, is there anyway to assign lifecycle policy to all the buckets at once? Looking for some feedback. Thank you.

Upvotes: 1

Views: 220

Answers (2)

ericgu
ericgu

Reputation: 2249

You can do this by adding a tag or prefix to your buckets.

Create lifecycle rule to target that tag or prefix to group your buckets together and assign/apply a single lifecycle policy.

https://docs.aws.amazon.com/AmazonS3/latest/user-guide/create-lifecycle.html

Upvotes: 0

Vorsprung
Vorsprung

Reputation: 34297

No this isn't possible as a ready made feature. However, there is something that might help, Amazon S3 Analytics

This produces a report of which items in your buckets are less frequently used. This information can be used find items that should be archived.

It could be possible to use the S3 Analytics output as input for a script to tag items for archiving. However, this complete feature (find infrequently used items and then archive them) doesn't seem to be available as a standard product

Upvotes: 2

Related Questions