Created
February 2, 2015 23:32
-
-
Save bfleming-ciena/abf3803443593f529568 to your computer and use it in GitHub Desktop.
Protect Taggs VPC
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": [ | |
{ | |
"Sid": "ProtectTaggedVPC", | |
"Effect": "Deny", | |
"Action": [ | |
"ec2:DeleteVpc" | |
], | |
"Resource": [ | |
"arn:aws:ec2:*:*:vpc/*" | |
], | |
"Condition": { | |
"StringEquals": {"ec2:ResourceTag/Environment": ["prod", "dev"]} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment