Versioning enabled for my s3 bucket. but when i delete a file . it gets deleted

0

Hi, I am a beginner to AWS. I have learned that ' If versioning is enabled for the s3 bucket and we delete an object, it won't get deleted and there will be a deletion marker ". I have enabled versioning in my S3 bucket and I have uploaded multiple versions of my object. but when I delete AWS is asking me for a permanent deletion confirmation and it is deleting it permanently. Please guide me if I didn't enable anything

feita há um ano1035 visualizações
1 Resposta
3
Resposta aceita

Hi,

If you have enabled versioning on the bucket, when you delete an object through the console, you will still be asked to confirm you want to delete it. As you rightly said, a deletion marker will be added to the object if versioning is enabled.

The AWS Console view of your S3 Bucket, by default, does not show all the versions of your object. If you toggle the "show versions" switch as highlighted below, you will be able to see the delete marker and original version of your object below that.

Enter image description here

If you have already toggled the versioning button as described above. Then you may well be selecting one of the specific versions to delete. These deletions are permanent, more information about this can be found here: https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeletingObjectVersions.html

AWS
Tom-B
respondido há um ano
profile picture
ESPECIALISTA
avaliado há 5 meses

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas