Sai Krishnadas
Sai Krishnadas

Reputation: 3409

couldn't view image url even after setting to public aws s3

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.

Permissions, enter image description here

While trying to access, enter image description here

Tried with both ACL enabled and disable, but still access denied

Upvotes: 1

Views: 476

Answers (1)

Ninad Gaikwad
Ninad Gaikwad

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

Related Questions