Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
397 views
in Technique[技术] by (71.8m points)

amazon s3 - If I have an S3 lifecycle rule to pemanently delete expired versions, will it apply also when the current version is a delete marker?

If I have a versioned bucket with a file, and the next day I delete that file, I am left with:

  • Delete marker for somefile.jpg (timestamp now)
    • somefile.jpg (timestamp yesterday)

I want a lifecycle rule that will permanently delete noncurrent versions after a while, and if the only current version is a delete marker, then the whole thing should be gone.

  1. Will the following rule achieve that?
  2. Will the following rule also retroactively apply to versions deleted more than 180 days ago, even if I'm creating the rule today?

Lifecycle rule 1 Lifecycle rule 2 Lifecycle rule 3

Thanks!

question from:https://stackoverflow.com/questions/65901118/if-i-have-an-s3-lifecycle-rule-to-pemanently-delete-expired-versions-will-it-ap

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Will the following rule achieve that?

Yes, it will delete the expired delete marker and permanently delete the previous versions of the object if the previous versions are more than 180 days old.

Will the following rule also retroactively apply to versions deleted more than 180 days ago, even if I'm creating the rule today?

Yes, it is retroactive. You can learn more here.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...