Rushing Labs

AWS S3 Hosting Permissions


I switched over to "bucket control", away from ACLs, and had to write my first Bucket Policy.

To setup a new S3 Bucket with publicly accessible images for website

  • Disable "Block all public access"
  • Create a new bucket policy with this policy below
"Version": "2012-10-17", "Statement": [ { "Sid": "PublicReadGetObject", "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::Bucket-Name/*" } ]

Note: Replace Bucket-Name with the name of your bucket.

RushingLabs - Analytics