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

Time:02-24

enter image description here

While trying to access, enter image description here

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

CodePudding user response:

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/*"
        }
      ]
    }
  • Related