Created
March 6, 2019 02:39
-
-
Save ravsau/c0254358a71b179f55f64b4d1b39dea1 to your computer and use it in GitHub Desktop.
vpc deny tag terraform file
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
resource "aws_iam_policy" "policy" { | |
name = "test_policy" | |
path = "/" | |
description = "My test policy" | |
policy = <<EOF | |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "VisualEditor0", | |
"Effect": "Deny", | |
"Action": "ec2:CreateTags", | |
"Resource": "arn:aws:ec2:*:*:vpc/*" | |
} | |
] | |
} | |
EOF | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment