Skip to content

Instantly share code, notes, and snippets.

@mahemoff
Created April 26, 2015 00:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahemoff/c4ba901515fd93f39242 to your computer and use it in GitHub Desktop.
Save mahemoff/c4ba901515fd93f39242 to your computer and use it in GitHub Desktop.
AWS policy to assign a user to a single bucket
# 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