3 ms·
Not 100% sure but can't you setup rules for that stuff in s3 itself? Like delete everything older than x date but never delete current version? I have a feelin
by dageshi 5y ago
Not 100% sure but can't you setup rules for that stuff in s3 itself? Like delete everything older than x date but never delete current version?
I have a feeling I set something like this up but it's been a while since I did it.
- nijave 5y agoYeah you can use lifecycle policies https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html https://docs.aws.amazon.com/AmazonS3/latest/userguide/object...
- andrewguenther 5y agoYou are correct, S3 lifecycle policies support deleting non-current object versions once they're X days old as well as X versions old: https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecy...
- justin_oaks 5y agoYou can, but automatically doing it would defeat the whole purpose of having versions I could roll back to. I need to confirm that that my recent backups are valid before deleting old backups. Otherwise I might as well not have used S3 versioning.