Created
January 22, 2013 17:29
-
-
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/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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