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

demandé il y a 10 mois447 vues
3 réponses
2
Réponse acceptée

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
répondu il y a 10 mois
profile picture
EXPERT
vérifié il y a 10 mois
profile picture
EXPERT
vérifié il y a 10 mois
  • 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
répondu il y a 10 mois
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.

répondu il y a 10 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions