Skip to content

Instantly share code, notes, and snippets.

@stefhen
Last active March 9, 2017 20:39
Show Gist options
  • Save stefhen/3f168333b1bd443a2da69c7b007a9a3c to your computer and use it in GitHub Desktop.
Save stefhen/3f168333b1bd443a2da69c7b007a9a3c to your computer and use it in GitHub Desktop.
Grant access to a single s3 bucket and nothing else.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Stmt1475614069000",
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::bucket/*"
]
},
{
"Sid": "Stmt1475614105000",
"Effect": "Allow",
"Action": [
"s3:ListBucket"
],
"Resource": [
"arn:aws:s3:::bucket"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment