Last active
October 18, 2022 14:02
-
-
Save jakepage91/feb7652d909a5aa1349d27f41022478b to your computer and use it in GitHub Desktop.
Example Terraform resource to define an AWS Organization tagging policy
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_organizations_policy" "OU-1-tagging-policy" { | |
name = "OU-1-tagging-policy" | |
content = <<CONTENT | |
{ | |
"tags": { | |
"Environment": { | |
"tag_value": { | |
"@@assign": [ | |
"Sandbox", | |
"Staging", | |
"Developement" | |
] | |
} | |
}, | |
"Project": { | |
"tag_value": { | |
"@@assign": [ | |
"Frontend", | |
"Backend", | |
"DevOps", | |
"Marketing" | |
] | |
} | |
} | |
"CostCenter": { | |
"tag_value": { | |
"@@assign": [ | |
"Team_1", | |
"Team_2", | |
"Team_3" | |
] | |
} | |
} | |
CONTENT | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment