Skip to content

Terraform | Reduction of manual effort when making changes to Tagging policies #19

Answered by jesseloudon
Winne004 asked this question in Q&A
Discussion options

You must be logged in to vote

hey @Winne004

Great question! and apologies for the delay in coming back to you on this -- it's been some time since I've looked at my Terraform modules in this repo and needed to refresh my memory 😄

Your approach shown above certainly works well!

One disadvantage I can foresee:

  • Adding new custom tag policy definitions (which aren't the same JSON as the existing) will require a new variable to be added to the initiative module and an additional dynamic block in resource "azurerm_policy_set_definition" "Tagging_policies". Not a management overhead if you are sticking to those existing custom policies and just incrementing the count based on variables.

Advantages I think also apply:

  • Spli…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Winne004
Comment options

Answer selected by Winne004
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants