2 Answers
- Newest
- Most votes
- Most comments
1
Hello.
If you do not have access to your S3 bucket, please follow the documentation below to change the bucket policy after logging in as the root user of your AWS account.
https://repost.aws/knowledge-center/s3-accidentally-denied-access
You can log in as the AWS root user by following the steps in the document below.
https://docs.aws.amazon.com/signin/latest/userguide/introduction-to-root-user-sign-in-tutorial.html
0
To reproduce the problem,
- create a bucket
- edit the permission to be the same as the question (edit the path to be your bucket name)
- then you will be not able to edit the permission or delete the bucket anymore.
answered 9 months ago
Relevant content
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 months ago
No, I created this bucket by myself. I think AWS api uses TLS 1.2 so it is not able to call the API.
AWS root user cannot restrict operations even with S3 bucket policies. Therefore, if you are an AWS root user, you can edit the S3 bucket policy.
What you are currently using is an IAM user. AWS root user is separate from IAM user. https://docs.aws.amazon.com/IAM/latest/UserGuide/id.html#root-user-vs-iam
If you are logged in as the root user, you can view and edit the bucket policy as shown below.