Dejan Bodiroga
Dejan Bodiroga

Reputation: 153

Terraform - issue with tags formating for Azure

I have issue with tags, this pattern worked on AWS but for Azure i got error which is strange, can someone review and help? Thanks.

$ terraform plan

Error: azurerm_virtual_network.vnet: 1 error(s) occurred:

Upvotes: 1

Views: 505

Answers (1)

4c74356b41
4c74356b41

Reputation: 72151

I dont really know what you are trying to achieve, but merge works with maps, where as in your case global_tags and vnet_tags are strings. and the error says just that

so you cast your first input to the merge function to MAP, but dont cast the other ones. you should cast them to MAP as well.

Upvotes: 1

Related Questions