2 Answers
- Newest
- Most votes
- Most comments
1
Refer to https://repost.aws/knowledge-center/s3-accidentally-denied-access for instructions to regain access to a bucket of lockout. Root user can update or delete the bucket policy regardless of the policy content. Note that here root user is different from an user with admin access. Update and delete bucket policy under such situation is one of the few tasks that require root credentials currently: https://docs.aws.amazon.com/IAM/latest/UserGuide/root-user-tasks.html
answered 7 months ago
1
I was able to delete bucket policy (and access bucket afterwards) with root account and aws cli. To do so you need:
- get access keys for root account
- run
aws s3api delete-bucket-policy --bucket bucket-name
as root
from the Administrator account I got An error occurred (AccessDenied) when calling the DeleteBucketPolicy operation: Access Denied
answered 7 months ago
Relevant content
- asked 3 years ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 9 months ago