S3
buckets are by default private where it can only be accessed by authorised users.
You can have a publicly accessible S3
bucket objects by creating an AWS S3
bucket and then making it public by applying appropriate bucket policy.
This method will make the whole content of the bucket public. You can also just allow public access only to specific objects or files in your private bucket.
How to allow public access to private AWS S3 bucket objects
S3
bucket if you don't already have one.Permissions
tab. Edit
link on the Public access settings
card. Block new public bucket policies
and Block public and cross-account access if bucket has public policies
options and click on the Save
button. confirm
and click on the Confirm
button. Bucket Policy
button. AWS Policy Generator
via the link at the bottom, or just paste the following public bucket policy at the editor and click on the Save
button. { "Version":"2012-10-17", "Statement":[ { "Sid":"AddPerm", "Effect":"Allow", "Principal": "*", "Action":["s3:GetObject"], "Resource":["arn:aws:s3:::simplified-guide/*"] } ] }
Make sure you replace simplified-guide
with your own bucket name.
Overview
tab. Comment anonymously. Login not required.