Reputation: 2109
I am trying to host a public facing static website on AWS S3.
{ "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", "Principal": "", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::[my-bucket-name]/" } ] }
I keep getting the Access denied error.
Upvotes: 0
Views: 592
Reputation: 760
Try "Principal" : "*"
in bucket policy and also you need to add s3:ListBucket
permission to be able to list the bucket. ListBucket permission needs to be added as separate statement in the policy.
Upvotes: 0