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
已提問 1 個月前檢視次數 111 次
2 個答案
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
已回答 1 個月前
0
profile picture
專家
GK
已回答 1 個月前
profile pictureAWS
專家
已審閱 1 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南