Skip to content

Instantly share code, notes, and snippets.

@s-rohith
Created April 29, 2023 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s-rohith/d4d83658be1a3e42ae83c47b16d37369 to your computer and use it in GitHub Desktop.
Save s-rohith/d4d83658be1a3e42ae83c47b16d37369 to your computer and use it in GitHub Desktop.
read-only s3 bucket policy
{
"Version": "2012-10-17",
"Statement": [
{
"Action": [
"s3:GetBucketLocation",
"s3:ListBucket"
],
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Resource": [
"arn:aws:s3:::test"
],
"Sid": ""
},
{
"Action": [
"s3:GetObject"
],
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Resource": [
"arn:aws:s3:::test/*"
],
"Sid": ""
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment