- Home
- Amazon-web-services
- Access Denied When Put Bucket Policy On Aws S3 Bucket With Root User Bucket O
Access denied when put bucket policy on aws s3 bucket with root user (= bucket owner)
Tags: amazon-web-services , amazon-s3 , root , policy , bucket Answers: 1 | Viewed 13,582 times
I have an AWS root user which I used to create a S3 bucket on Amazon.
Now I want to make this bucket public by adding following policy:
{
"Version": "2012-10-17",
"Statement": [{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<my bucket name>/*"
}]
}
Where <my bucket name> is the name of the bucket. When I try to save this policy I get a 403 access denied.
I tried explicitly setting the s3:PutBucketPolicy permission but it still gives a 403. Anybody knows why?
This is the image error:
Huu Phong Nguyen answer at 2018-11-20 17
Uncheck 2 rows for fixing the access denied. But please remember reading it clearly and consider it before you create a new bucket. Permission is really important.
* The answers/resolutions are collected from stackoverflow, are licensed under CC BY-SA 4.0
Some Code Answers
{ "Version": "2012-10-17", "Statement": [{
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::<my bucket name>/*"
}] }
More Answers Related Access Denied When Put Bucket Policy On Aws S3 Bucket With Root User Bucket O
Resolve 403 errors when modifying an S3 bucket policy
1 week ago May 16, 2022 · Use another IAM identity that has bucket access and modify the bucket policy. Follow these steps to modify the bucket policy: 1. Open the Amazon S3 console. 2. From the list of buckets, open the bucket with the bucket policy that you want to change. 3. Choose the Permissions tab.
Show details
› See also: List
Regain access to an Amazon S3 bucket
2 days ago Sep 16, 2021 · To get access to your bucket again, sign in to the Amazon S3 console as the AWS account root user, and then delete the bucket policy.. Warning: Do not use the root user for everyday tasks. Limit the use of these credentials to only the tasks that require you to sign in as the root user.Note that root credentials aren't the same as an AWS Identity Access …
Show details
Access Denied when attempting to change Bucket Policy …
1 week ago I'm new to AWS and the AWS console. I appear to have somehow really messed up my settings. My client wants to use AWS S3 as a hosting platform for his podcast, but I cannot upload any file with public-read permissions. To tackle this problem I have attempted changing the bucket policy to the following (as root user):
Show details
› See also: File
Bucket policy examples - Amazon Simple Storage Service
1 week ago The following example bucket policy grants Amazon S3 permission to write objects (PUTs) from the account for the source bucket to the destination bucket. You use a bucket policy like this on the destination bucket when setting up Amazon S3 Inventory and Amazon S3 analytics export.
Show details
put-bucket-policy — AWS CLI 1.25.41 Command Reference
6 days ago Description ¶. Applies an Amazon S3 bucket policy to an Amazon S3 bucket. If you are using an identity other than the root user of the Amazon Web Services account that owns the bucket, the calling identity must have the PutBucketPolicy permissions on the specified bucket and belong to the bucket owner's account in order to use this operation.
Show details
Access denied when trying to GET objects uploaded to s3 bucket …
5 days ago The entity is an IAM role or user in your account whose IAM policy allows S3 access (e.g. s3:GetObject). Your root user will have full access by default. If the entity is an anonymous user (any non-AWS authenticated request), the S3 bucket policy or an individual object's ACL allows anonymous reads.
Show details
How to fix AWS S3 bucket policy and public permissions …
1 day ago Aug 12, 2020 · Fixing S3 bucket policy error - access deniedHow to fix AWS S3 public permission error - access deniedHow to fix public permission issue in Amazon AWS S3
› Author: Girish G
› Views: 11K
Show details
Why am I getting an Access Denied error from the …
3 days ago Aug 17, 2021 · We appreciate your feedback: //amazonintna.qualtrics.com/jfe/form/SV_czLXcR3SDA353wiFor more details see the Knowledge Center article with this video: ...
Show details