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 Risposta
0
Risposta accettata

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
ESPERTO
con risposta 7 mesi fa
profile pictureAWS
ESPERTO
verificato 7 mesi fa
  • 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 🤷‍♂️

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande