Skip to content

Instantly share code, notes, and snippets.

@bfleming-ciena
Created February 2, 2015 23:32
Show Gist options
  • Save bfleming-ciena/abf3803443593f529568 to your computer and use it in GitHub Desktop.
Save bfleming-ciena/abf3803443593f529568 to your computer and use it in GitHub Desktop.
Protect Taggs VPC
{
"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