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

preguntada hace 2 años238 visualizaciones
2 Respuestas
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
respondido hace 2 años
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
respondido hace 10 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas