I have read everything I can read on the Internet or the official documents, but this error is so awkward. I want to add following policy on to my bucket:
{ "Version":"2012-10-17", "Statement":[
{
"Sid":"AddPerm",
"Effect":"Allow",
"Principal": "*",
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::mybucket/*"]
} ]
}
however, the only thing I can get is access denied:
I've tried to set this, but it did not work: enter image description here
What's more, I tried to add bucket policy on my friend account, and it works, the only difference between these two accounts is that my account has an elastic beanstalk(I do not know whether this would affect the result), so please tell me what should I do?