Access denied when put bucket policy on aws s3 bucket with root user (= bucket owner)

拟墨画扇 提交于 2019-12-13 13:15:09

问题


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 is my name of the bucket?
When I trying to save this policy I get a 403 access denied..

I tried explicitly setting the putbucketpolicy permission but it still gives a 403.
Any body that knows why?

This is the image error:


回答1:


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.




回答2:


I've tried creating a new bucket and by setting the following permission parameters unchecked (false) the bucket policy can now be adjusted to make the bucket objects public. Afterwards I ticked off the four previous checkboxes and now it works.

permissions



来源:https://stackoverflow.com/questions/53373840/access-denied-when-put-bucket-policy-on-aws-s3-bucket-with-root-user-bucket-o

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!