Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
example iam policy for vpc deny
{
"Effect": "Deny",
"Action": [ "ec2:AttachInternetGateway", "ec2:DetachInternetGateway" ],
"Resource": "arn:aws:ec2:REGION:ACCOUNTNUMBER:*",
"Condition": {
"StringEquals": {
"ec2:vpc": "arn:aws:ec2:REGION:ACCOUNTNUMBER:vpc/VPC-ID"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.