Hello,
for some reason the volume_tags do not “get” the values from default_tags. Is there something i’m missing?
e.g.:
locals {
base_tags = {
Client = var.Client_abbr
}
}
resource "aws_instance" "this" {
...
tags = merge(
{
Name = "Blah"
Team = " Blah"
},
local.base_tags
)
volume_tags = merge(
local.base_tags,
{
Name = "Volume_Blah"
Team = "Volume_Blah"
}
)
}
and
provider "aws" {
....
default_tags {
tags = {
Solution = "comp"
}
}
}
Only VM has “Solution” tag.
“Name”, “Team” and “Client” are present on VM and volume.
Thank you,
AZ