- Newest
- Most votes
- Most comments
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,
https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html
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?
Relevant content
- asked 2 years ago
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago