When is the Amazon S3 lifecycle rule executed?

Viewed 4735
2 Answers

Found the answer in the official AWS S3 documentation (which was more helpful/trustworthy for my case since tech like Intelligent-Tiering keeps changing).

Transitioning an object to another storage class (such as S3 Intelligent-Tiering) takes until at least midnight UTC.

AWS Lifecycle documentation:

Amazon S3 calculates the time [a Transition or Expiration Lifecycle action should occur] by adding the number of days specified in the rule to the object creation time and rounding the resulting time to the next day midnight UTC. For example, if an object was created at 1/15/2014 10:30 AM UTC and you specify 3 days in a transition rule, then the transition date of the object would be calculated as 1/19/2014 00:00 UTC.

AWS Intelligent Tiering documentation - This describes a Lifecycle which transitions objects to S3 Intelligent-Tiering after 0 days:

The rule specifies a Transition action directing Amazon S3 to transition objects to the S3 Intelligent-Tiering storage class 0 days after creation. In this case, objects are eligible for transition to S3 Intelligent-Tiering at midnight UTC following creation.

Related