Llifecycle configuration rules conflict

0

Where can I read about edge cases where I define a couple of lifecycle rules, where I delete the same object, one rule specifies expiry after 30 days and then other rule specifies expiry after 60 days. Which rule takes precedence? Same question for a case with one rule for the entire bucket and one rule for a specific object in the bucket. Thanks!

  • Hi! The reason this happens is due to the nature of S3 lifecycle which choose the policy/ideology that optimizes for cost. If there is 30 day lifecycle policy and a 60 day lifecycle policy, the shorter policy (30 day) will be honored as it is considered the most cost optimized option. In this case the 30 day expiry rule takes precedence of the 60 day rule. In both cases, S3 Lifecycle tries to choose the path that is least expensive for you. An exception to this general rule is with the S3 Intelligent-Tiering storage class. S3 Intelligent-Tiering is favored by S3 Lifecycle over any storage class, aside from the S3 Glacier Flexible Retrieval and S3 Glacier Deep Archive storage class

    -Nitin

asked 2 years ago230 views
2 Answers
0

Hi,

In a nutshell, S3 lifecycle chooses a path that is least expensive

You can find some useful information here - https://docs.aws.amazon.com/AmazonS3/latest/userguide/lifecycle-configuration-examples.html#lifecycle-config-conceptual-ex5

--Syd

profile picture
Syd
answered 2 years ago
0

Hi! The reason this happens is due to the nature of S3 lifecycle which choose the policy/ideology that optimizes for cost. If there is 30 day lifecycle policy and a 60 day lifecycle policy, the shorter policy (30 day) will be honored as it is considered the most cost optimized option. In this case the 30 day expiry rule takes precedence of the 60 day rule. In both cases, S3 Lifecycle tries to choose the path that is least expensive for you. An exception to this general rule is with the S3 Intelligent-Tiering storage class. S3 Intelligent-Tiering is favored by S3 Lifecycle over any storage class, aside from the S3 Glacier Flexible Retrieval and S3 Glacier Deep Archive storage class

-Nitin

AWS
answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions