S3 bucket contents cleanup over 365 day old

0

I'm following steps here https://repost.aws/knowledge-center/s3-empty-bucket-lifecycle-rule# but instead of using 1 for the days I'm using 365. I want to confirm that on step 14 Create a second lifecycle rule, Delete expired delete markers or incomplete multipart uploads and Delete expired object delete markers, it will only delete what was marked in the 365 day lifecycle rule created earlier.

DDAS
질문됨 9달 전242회 조회
1개 답변
2
수락된 답변

Delete expired object delete markers or incomplete multipart uploads : You can only select Delete incomplete multipart uploads but not Delete expired object delete markers, when Expire current versions of objects rule is selected.

Delete incomplete multipart uploads: This action will stop all incomplete multipart uploads, and the parts associated with the multipart upload will be deleted

Delete expired object delete markers: You cannot enable Delete expired object delete markers if you enable Expire current versions of objects. This action is not available when "Expire current versions of objects" is selected.

Expire current version of objects will add the delete marker and the current version of an object is retained as a noncurrent version. For non-versioned buckets, Amazon S3 permanently removes the object. Please refer Expiring objects documentation

So to conclude this, in your case, current version of object would be expired in 365 days through rule Expire current versions of objects but you would not want to keep non-current version of objects for another 365 days, so based on your requirement I'd suggest you to add days in the rule Permanently delete noncurrent versions of objects accordingly, like how many days you want to keep noncurrent version objects to stay there. If you want to keep noncurrent version for 1 day then enter day value as 1 for this rule.

Additional Reference:

Hope you find this helpful.

Comment here if you hav additional questions, happy to help.

Abhishek

profile pictureAWS
전문가
답변함 9달 전
profile picture
전문가
검토됨 9달 전
  • Do you have any additional questions, happy to help.

  • Thanks for responding to my question so quickly. I read up a little more on what is a delete marker and I'm pretty confident now that it will only affect the files that were marked for deletion and nothing else. Thanks for posting your answer.

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

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

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

관련 콘텐츠