how to delete bucket with object lock enabled

0

Hi

I am completely new to AWS S3 and hope to be permitted to ask the question below:

I created a bucket (as root user in the console) with object lock enabled for using it as a Veeam backup repository

After succesfully creating this repository in Veeam as a IAM user with S3 permissions to do this, this bucket contains some objects that describe the repository and the owner. (did not run a backup towards it yet)

When trying to delete this bucket at this point (as the root-user in the console), the first step is emptying it. (removing these objects) But when trying this I get an 'access denied' on these objects

Can you please help me understand what I can do to delete the bucket in this situation ?

TIA for your help ! B

bs
preguntada hace un mes126 visualizaciones
2 Respuestas
3

Hello,

Object lock is nothing but Restricting the deletion option by accidently or for security reasons. But you have a chance to delete the objects or empty the bucket by enabling Default retention in Object lock set the retention mode to Governance so that you can empty the bucket with certain permissions. As a root user you don't need any permission. So you can empty the bucket by enabling Default Retention.

Note: by enabling Object lock to a bucket you can have a chance to delete objects in that bucket but you can't delete the bucket once the object lock is enabled.

For further details see https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock.html

profile picture
respondido hace un mes
0
profile picture
EXPERTO
GK
respondido hace un mes
profile pictureAWS
EXPERTO
revisado hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas