Reputation: 327
I got accidentally locked out of the AWS S3 bucket by not meeting certain conditions. I accidentally set bucket policies that explicitly deny access to any requests outside the allowed IP addresses. Now I am not able to either list objects, view the permissions, or anything inside the bucket and completely locked out of it.
How can I regain access to the bucket?
Here are some of the error screenshots:
Insufficient Permissions to list oBjects for a bucket while trying to delete the bucket
Upvotes: 2
Views: 7565
Reputation: 525
For me the error was fixed after adding s3:List*
to a policy of the user.
{
"Effect": "Allow",
"Action": [
"s3:List*"
],
"Resource": "*"
}
Upvotes: 0
Reputation: 238199
You can do this as a root user as explained in the following AWS docs:
Upvotes: 3