Skip to content

Instantly share code, notes, and snippets.

@afquinterog
Created November 19, 2018 16:22
Show Gist options
  • Save afquinterog/be0553a6b42efd0fdaae8172235f623f to your computer and use it in GitHub Desktop.
Save afquinterog/be0553a6b42efd0fdaae8172235f623f to your computer and use it in GitHub Desktop.
access-to-specific-buckets
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:GetBucketLocation",
"s3:ListAllMyBuckets"
],
"Resource": "*"
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::docs-staging.venture.co"
]
},
{
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::docs-staging.chalice.co"
]
},
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::docs-staging.venture.co/*"
]
},
{
"Effect": "Allow",
"Action": [
"s3:PutObject",
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::docs-staging.chalice.co/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment