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ヶ月前447ビュー
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ