Lifecycle rules for permanently deleting delete markers in AWS Console

0

I'm trying to free up space on a bucket with versioning enabled. Versioning is only enabled because of the fear of losing files forever (files don't really get overridden).

I found this question answered on SO: https://stackoverflow.com/questions/70047369/aws-s3-lifecycle-rules-for-permanently-deleting-delete-markers

But the answer refers to the XML configuration, not how to achieve this using the console. Would this be the correct rule?

Enter image description here

It's very confusing expiration VS deletion.

Do I also need to enable "Delete expired object delete markers or incomplete multipart uploads"? 🤔

Thanks!

1 Antwort
0
Akzeptierte Antwort

Your rule will delete any old versions 30 days after then got over written. It will not retain a backup copy as you are retaining 0 non current versions.

If the file is deleted 30 days later it will be gone forever. If you need to keep a deleted file then set number of newer versions to retain to anything 1 or greater.

profile picture
EXPERTE
beantwortet vor 7 Monaten
profile pictureAWS
EXPERTE
überprüft vor 7 Monaten
  • I'm happy for the deleted files to be recoverable only for 30 days. What happens with the delete markers? They will disappear too if they don't have noncurrent versions? Thanks!

  • The underlying (non current) versions will be deleted if there is not current version left after 30 days.

  • Yes, I know all noncurrent versions will be deleted after 30 days. But what happens to the delete markers? Do I have to do something to remove them? Perhaps adding the "Delete expired object delete markers or incomplete multipart uploads" action to the rule? Thanks!

  • It doesn't look like it is possible to delete the delete markers after 30 days using the "Delete expired object delete markers or incomplete multipart uploads" action 🤷‍♂️

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen