How to create public S3 bucket in AWS
S3 buckets are by default private. You can configure your S3 buckets to be publicly accessible by applying appropriate bucket policy with the following steps. Be warned that his method will make the whole content of the bucket public.
-
Create a private S3 bucket if you don’t already have one.
-
Click on
Add bucket policy
link. -
Here you can use the
AWS Policy Generator
via the link at the bottom left, or just paste the following code at the editor.{ "Version":"2012-10-17", "Statement":[ { "Sid":"AddPerm", "Effect":"Allow", "Principal": "*", "Action":["s3:GetObject"], "Resource":["arn:aws:s3:::osdocs-testbucket/*"] } ] }
Make sure you replace
osdocs-testbucket
with your own bucket name. -
Click on the
Save
button. -
Click on the link for your object.