Skip to content

Instantly share code, notes, and snippets.

@fprieur
Last active August 29, 2015 14:16
Show Gist options
  • Save fprieur/911ff3dc0bf3f746109f to your computer and use it in GitHub Desktop.
Save fprieur/911ff3dc0bf3f746109f to your computer and use it in GitHub Desktop.
Make a s3 bucket read-only

Make a s3 bucket readonly for public

Just add the above as bucket policy.

Change bucket/* with the given bucket name.

{
"Version":"2008-10-17",
"Statement":[{
"Sid":"AllowPublicRead",
"Effect":"Allow",
"Principal": {
"AWS": "*"
},
"Action":["s3:GetObject"],
"Resource":["arn:aws:s3:::bucket/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment