Public Readable Amazon S3 Bucket Policy

| Posted: - Last updated:
| Tagged amazon s3 cloudfront bucket policy
| ~200wrds (~1min)

Amazon S3 allows you to set per-file permissions to grant read and/or write access. This is nice, but sometimes you just want to share your whole bucket with the world.

Luckily, Amazon features bucket policies, which allow you to define permissions for an entire bucket. ~ This example will give read access to Everyone on all files in your bucket.

		"Principal": {
			"AWS": "*"

Make sure you replace bucket in arn:aws:s3:::bucket/* with your bucket name.

After setting this bucket policy (see ‘Bucket -> Properties -> Add Bucket Policy’), all your files will be publicly readable.

My site is free of ads and trackers. I record privacy-respecting usage statistics with Fathom.

Was this post helpful to you? Why not ☕ Buy me a coffee or use Brave Browser to send a tip.