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

posta 2 anni fa239 visualizzazioni
2 Risposte
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
con risposta 2 anni fa
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
con risposta 10 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande