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

asked 9 months ago423 views
3 Answers
2
Accepted Answer

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
EXPERT
answered 9 months ago
profile picture
EXPERT
reviewed 9 months ago
profile picture
EXPERT
reviewed 9 months ago
  • 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
answered 9 months ago
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.

answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions