Skip to content

Instantly share code, notes, and snippets.

@CoffeeAndCode
Created January 22, 2013 17:29
Show Gist options
  • Save CoffeeAndCode/4596489 to your computer and use it in GitHub Desktop.
Save CoffeeAndCode/4596489 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