Created
July 6, 2016 11:51
-
-
Save slashr/f17eb97ac86e94160ce03cc920373143 to your computer and use it in GitHub Desktop.
Restrict User's EC2 access to a specific region
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
{ | |
"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