AWS S3 behavior when both transition and expiration is present

0

I read multiple documents in case when both expiration and transition is present in same rule. This link says below 2 somewhat different things:

  • Example 4 in link: Transition takes precedence over creation of delete markers.
  • Example 4 in link: If an object has both tags, then Amazon S3 has to decide which rule to follow. In this case, Amazon S3 expires the object 14 days after creation. The object is removed, and therefore the transition action does not apply.
  • Also other docs mention that "Glacier has 90 days minimum storage duration"

I configured lifecycle policy on a "versioned bucket". I added single rule with expiration (current version) and transition policy (current version):

  • Transition the latest version of objects to Glacier Flexible Retrieval (formerly Glacier) after 10 days of object creation.
  • Delete (create Delete Marker since bucket is version enabled) the current version of object after 15 days of object creation. Enter image description here

I want to understand AWS S3 behavior for above configuration. Will it

  1. "change object's storage class to Glacier after 10 days" and later "delete the object (add delete marker) after 15 days" ?
  2. or will it "change object's storage class to Glacier after 10 days" and after 90 days "delete the object (add delete marker)" ?
  3. or something else ?
已提問 2 年前檢視次數 500 次
2 個答案
1

As reflected in the screenshot provided, it would "change object's storage class to Glacier after 10 days" and later "delete the object (add delete marker) after 15 days".

The part about "Glacier has 90 days minimum storage duration" applies to pricing. Though you are would be able to delete the object from Glacier in 15 days, you would end up paying for the remaining days of minimum storage duration. This info is found in the fine print in the S3 pricing page and the question "How am I charged for deleting objects from Amazon S3 Glacier Flexible Retrieval that are less than 3 months old?" in S3 FAQ.

--Syd

profile picture
Syd
已回答 2 年前
0

Thank you Syd. It turns out "Transition takes precedence over creation of delete markers. Initially it changes storage class to "Glacier". Later it deletes the object (adds DM in case of versioned bucket).

已回答 2 年前

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

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

回答問題指南