S3 lifecycle rule

0

Hi guys!

I have a question about S3 lifecycle rules. I have a bucket with suspended versioning. I have also a lifecycle rule which 'delete' older files than 180 days. My problem is, the objects after 180 days didn't deleted, just became non-current, and i can see these object with show versions button. How can i delete these non-current(or expired??) versions? I have to create a new lifecycle rule with "Delete expired object delete markers or incomplete multipart uploads" option?

My rule setup: rule

질문됨 10달 전452회 조회
3개 답변
2
수락된 답변

The files delete 180 days AFTER they become non current as per screenshot.

So files will become non current after 180 days and then will be deleted 180 after they are non current. So in total that’s 360 days after creation.

profile picture
전문가
답변함 10달 전
profile picture
전문가
검토됨 10달 전
profile picture
전문가
검토됨 10달 전
  • Hi! Than if i reduce to delete the non-current object for example, to 1 days, just the older object than 180 will be deleted, right? Because just after 180 days become non-current.

  • Oh, i understood now! Thank you very much!

  • Remember WITH versioning, as soon as a file is replaced with a newer verison the previous version becomes noncurrent and the 180 day timer starts before the non current is then deleted also

    Your welcome..

0

Hi,

Please refer this answer to configure lifecycle rules for noncurrent object versions.

profile picture
답변함 10달 전
0

This is regarding multipart failed uploads. Check out these two articles on that situation. You will have to create a lifecyle rule for each bucket to get rid of these. I would use 1 day for the time period or else you'll have to wait a long time for it to take effect. Storage lens will tell you if you have these failed uploads or not. You won't see them in your buckets.

https://aws.amazon.com/blogs/aws-cloud-financial-management/discovering-and-deleting-incomplete-multipart-uploads-to-lower-amazon-s3-costs/

https://aws.amazon.com/blogs/aws/s3-lifecycle-management-update-support-for-multipart-uploads-and-delete-markers/

You might want to open a support ticket with AWS to get a refund for these failed uploads. I did and they did refund me for them. Be prepared to tell them what buckets and how far back to go for the refund.

답변함 10달 전

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

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

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

관련 콘텐츠