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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠