Skip to content

Instantly share code, notes, and snippets.

@jonknapp
Created September 19, 2014 18:42
Show Gist options
  • Save jonknapp/1531aeed55c950b0273f to your computer and use it in GitHub Desktop.
Save jonknapp/1531aeed55c950b0273f to your computer and use it in GitHub Desktop.
Amazon S3 user policy that allows the user to list the S3 buckets in the account, but only manage the files in the "example.com" bucket. Full post located at http://jonknapp.com/2013/01/deploying-jekyll-to-s3/
{
"Statement": [
{
"Action": [
"s3:ListAllMyBuckets"
],
"Effect": "Allow",
"Resource": "arn:aws:s3:::*"
},
{
"Action": ["s3:*"],
"Effect": "Allow",
"Resource": ["arn:aws:s3:::example.com", "arn:aws:s3:::example.com/*"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment