Created
April 26, 2015 00:34
-
-
Save mahemoff/c4ba901515fd93f39242 to your computer and use it in GitHub Desktop.
AWS policy to assign a user to a single bucket
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
# Create this from IAM - Users - the user - Inline policies - create one - Custom Policy - paste this | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": "s3:*", | |
"Effect": "Allow", | |
"Resource": [ | |
"arn:aws:s3:::my-bucket", | |
"arn:aws:s3:::my-bucket/*" | |
] | |
}, | |
{ | |
"Effect": "Allow", | |
"Action": "s3:ListAllMyBuckets", | |
"Resource": "arn:aws:s3:::*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment