Skip to content

Instantly share code, notes, and snippets.

@cmawhorter
Created January 1, 2016 03:21
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 cmawhorter/d43c326e90340028159a to your computer and use it in GitHub Desktop.
Save cmawhorter/d43c326e90340028159a to your computer and use it in GitHub Desktop.
AWS IAM inline policy for a user that gives them access to a specific region. Definitely not complete but good enough for me, for now for dev.
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "*",
"Resource": "*",
"Condition": {
"StringLike": {
"aws:SourceArn": "arn:aws:*:us-west-2:*"
}
}
},
{
"Effect": "Allow",
"Action": "s3:*",
"Resource": [
"arn:aws:s3:::*-us-west-2",
"arn:aws:s3:::*-us-west-2/*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment