Lifecycle rules for permanently deleting delete markers in AWS Console

0

I'm trying to free up space on a bucket with versioning enabled. Versioning is only enabled because of the fear of losing files forever (files don't really get overridden).

I found this question answered on SO: https://stackoverflow.com/questions/70047369/aws-s3-lifecycle-rules-for-permanently-deleting-delete-markers

But the answer refers to the XML configuration, not how to achieve this using the console. Would this be the correct rule?

Enter image description here

It's very confusing expiration VS deletion.

Do I also need to enable "Delete expired object delete markers or incomplete multipart uploads"? 🤔

Thanks!

1개 답변
0
수락된 답변

Your rule will delete any old versions 30 days after then got over written. It will not retain a backup copy as you are retaining 0 non current versions.

If the file is deleted 30 days later it will be gone forever. If you need to keep a deleted file then set number of newer versions to retain to anything 1 or greater.

profile picture
전문가
답변함 7달 전
profile pictureAWS
전문가
검토됨 7달 전
  • I'm happy for the deleted files to be recoverable only for 30 days. What happens with the delete markers? They will disappear too if they don't have noncurrent versions? Thanks!

  • The underlying (non current) versions will be deleted if there is not current version left after 30 days.

  • Yes, I know all noncurrent versions will be deleted after 30 days. But what happens to the delete markers? Do I have to do something to remove them? Perhaps adding the "Delete expired object delete markers or incomplete multipart uploads" action to the rule? Thanks!

  • It doesn't look like it is possible to delete the delete markers after 30 days using the "Delete expired object delete markers or incomplete multipart uploads" action 🤷‍♂️

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

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

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

관련 콘텐츠