- Newest
- Most votes
- Most comments
Amazon S3 will evaluate the object's LastModifiedDate to determine if the object is eligible for transitition. The LastModifiedDate is based on when the body of the object was last modified. Adding tags to an object will not cause the LastModifiedDate to reset. Additionally, Amazon S3 will scan you bucket daily to evaluate if an object is eligible for a Lifecycle Rule.
Objects eligible for transitioning via a Lifecycle Rule due not contain any additional headers. However, objects eligible for expiration via a Lifecycle Rule will contain an additional "Expiration" header. You can perform a HeadObject API call these objects to see if Amazon S3 has evaluated the object and determined if it's eligible for expiration. You can use this behavior to test out your use case by loading test objects into a prefix and configuring a Lifecycle Rule to expire objects within that prefix. Then, on the day you want to expire the object, you can add the required tags to the object and then wait for a bit and then perform HeadObject call. You will see that the object has been evaluated by Amazon S3 and has determined that the object is eligible for expiaration by viewing the "Expiration" header.
Relevant content
- asked 5 years ago
- asked 7 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated a month ago