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 個月前檢視次數 456 次
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 個月前

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

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

回答問題指南