Hello,
i noticed that every time the code runs it either removes all tags or adds all of them.
Not sure why.
the simplified code is like this:
locals {
base_tags = {
Client = var.Client_abbr
...
}
}
...
resource "aws_instance" "this" {
for_each = var.vms
...
tags_all = merge(
{
...
ProductFamily = ${each.value.tag_productfamily}
...
},
local.base_tags
)
}
The reason for using tags_all is to add provider level tags should I have them ( currently not defined).
Thank you for looking.