Skip to content

Instantly share code, notes, and snippets.

@slashr
Created July 6, 2016 11:51
Show Gist options
  • Save slashr/f17eb97ac86e94160ce03cc920373143 to your computer and use it in GitHub Desktop.
Save slashr/f17eb97ac86e94160ce03cc920373143 to your computer and use it in GitHub Desktop.
Restrict User's EC2 access to a specific region
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"ec2:*"
],
"Condition": {
"StringEqualsIgnoreCase": {
"ec2:Region": [
"us-east-1"
]
}
},
"Resource": [
"*"
]
},
{
"Effect": "Allow",
"Action": [
"ec2:Describe*"
],
"Resource": [
"*"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment