Add Bucket Policy to your S3 Bucket

To assign the Bucket Policy

  1. Open the S3 console.
  2. Choose the name of the bucket to apply the policy to.
  3. Choose the Permissions tab, and then choose Bucket Policy.
  4. Copy and paste this code in the Bucket Policy Editor popup. You’ll need to replace “YOUR-BUCKET-NAME” with your full bucket name.
  5. Choose Save.
{"Version": "2008-10-17",
"Statement": [{"Sid": "AllowPublicRead",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::YOUR-BUCKET-NAME/*"
}]}

That’s it 😉

Happy Sngine.