Skip to content

Locked out of S3 Bucket due to Bucket Policy in GovCloud

1

Hello, I have an S3 bucket in a GovCloud account that is locked to everyone and everything due to its bucket policy. Normally, in a commercial account I'd be able to delete the bucket/policy with the root account, however, GovCloud accounts don't seem to have root users. Using an IAM Admin Role doesn't seem to work either. I was wondering what other options I had in order to remove the bucket and/or the bucket policy.

3 Answers
4

With the latest changes to AWS GovCloud, the root user can now be utilized to self-service the removal of overly restrictive bucket policies applied to your S3 buckets.

You can find the procedures for requesting root access to your GovCloud account in the following documentation: https://docs.aws.amazon.com/govcloud-us/latest/UserGuide/govcloud-account-root-user.html#requesting-root-user-keys

Once the root user credentials have been generated, follow the procedures provided under the labeled section "You don't meet the conditions in the bucket policy" in the related re:Post article: https://repost.aws/knowledge-center/s3-accidentally-denied-access

Please ensure that you delete the root user access keys after the problematic policy has been removed or rotate the access keys regularly if you must keep one available (not recommended).

AWS

answered a year ago

1
Accepted Answer

You will need to contact AWS Support for them to disable the bucket policy for buckets in GovCloud. As you indicated, there is no root account for you to login to do it yourself.

AWS

answered 5 years ago

EXPERT

reviewed 3 years ago

1

You will need to open up a support ticket from the linked account in the standard partition. See:

AWS GovCloud (US) Administrator Account Password Reset

and

How IAM Differs for AWS GovCloud (US)

AWS
EXPERT

answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.