Reputation: 3409
https://thestobookimages.s3.ap-south-1.amazonaws.com/mark.jpeg this image is in my aws s3 bucket and the bucket permissions are set to allow all public. But still it shows access denied.
Tried with both ACL enabled and disable, but still access denied
Upvotes: 1
Views: 476
Reputation: 4480
You also have to edit bucket policy to allow public read.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": "*",
"Action": [
"s3:GetObject"
],
"Resource": "arn:aws:s3:::YOUR_BUCKET_NAME/*"
}
]
}
Upvotes: 3