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

已提問 2 年前檢視次數 239 次
2 個答案
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
已回答 2 年前
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
已回答 10 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南