Make a bucket public in Amazon S3 [closed] – Dev

The best answers to the question “Make a bucket public in Amazon S3 [closed]” in the category Dev.


How can I set a bucket in Amazon S3 so all the files are publicly read-only by default?


Amazon provides a policy generator tool:

After that, you can enter the policy requirements for the bucket on the AWS console:


You can set a bucket policy as detailed in this blog post:

As per @robbyt’s suggestion, create a bucket policy with the following JSON:

  "Version": "2008-10-17",
  "Statement": [{
    "Sid": "AllowPublicRead",
    "Effect": "Allow",
    "Principal": { "AWS": "*" },
    "Action": ["s3:GetObject"],
    "Resource": ["arn:aws:s3:::bucket/*" ]

Important: replace bucket in the Resource line with the name of your bucket.