Does changing a s3 lifecycle policy change all older objects in an s3 bucket?
I have an s3 life cycle policy using intelligent tiering where objects go to archive after 90 days and then transition to deep glacier after the next 90. And then remain in deep glacier until the retention policy hits at 305 total days.
I'd like to remove the deep glacier rule and let the stuff thats currently on deep glacier age out. But if I remove the deep glacier transition, I'm concerned that all objects already on deep glacier will then hit the archive rule since technically they are over 90 days old, after which all those older objects will transition from deep glacier back to the archive storage tier.
So the question is, what's the behavior: Will only objects turning 90 days old transition to the archive tier and all deep glacier objects can age out, or will ALL objects currently in deep glacier transition back to archive?
I would like to inform you that there is no option to apply lifecycle policy to a certain storage class. However if you have versioning enabled and do not have non current version of any objects (that is you have only one version of object) then you can delete the current lifecycle policy and create a new lifecycle policy to expire current version of objects after 305 days and delete the non current version of objects after 1 day. This lifecycle policy will allow you to transition all current version after 305 days to non-current version while deleting it after 1 day of being non current in all storage class. For examples of S3 Lifecycle configuration please refer to below article,
Thanks you for your reply. I do not have versioning enabled and I am aware that the policy doesn't apply to a storage class. I'm wondering if it applies to all objects in the bucket new and old, or does it only apply to objects turning 90 days old? For example, will objects that are already 300 days old be affected by a policy change that transitions objects at 90 days?
A lambda function to delete old archive files in s3 bucketasked 3 years ago
S3 intelligent tier re-archiving clarificationAccepted Answerasked 6 months ago
S3 Bucket Delete Marker Policy Not Workingasked 3 months ago
Use S3 lifecycle policy to create a recycle binasked 2 months ago
s3 lifecycle transition costsAccepted Answerasked 2 years ago
S3 lifecycle rule scan chargesAccepted Answerasked 2 years ago
s3 Glacier Transitionasked 5 months ago
Does changing a s3 lifecycle policy change all older objects in an s3 bucket?asked 2 months ago
grant access to one role in another account to all objects in an S3 bucket?asked 10 months ago
Expire S3 glacier deep archive using lifecycle management not workingAccepted Answerasked 5 months ago