Skip to content

Instantly share code, notes, and snippets.

@ravsau
Created March 6, 2019 02:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravsau/c0254358a71b179f55f64b4d1b39dea1 to your computer and use it in GitHub Desktop.
Save ravsau/c0254358a71b179f55f64b4d1b39dea1 to your computer and use it in GitHub Desktop.
vpc deny tag terraform file
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