Pulse Nova
Pulse Nova

Reputation: 327

Insufficient permissions to list objects for bucket "XXXX" while deleting AWS S3 bucket

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

Insufficient Permissions to list oBjects for a bucket while trying to delete the bucket

Objects Page Insufficient permissions to list objects

Permission Page enter image description here

Upvotes: 2

Views: 7565

Answers (2)

David
David

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

Marcin
Marcin

Reputation: 238199

You can do this as a root user as explained in the following AWS docs:

Upvotes: 3

Related Questions