I started with the join function but found that you can't use a function within . . .

Daniel Siefert:
I started with the join function but found that you can’t use a function within a variable and it looks like Local Values is supposed to be the way but I can’t figure out how to concatenate a string value using it.

Shang:

#Take a part of code from my project to create VM <https://github.com/risyou/ves-esxi-terraform/blob/main/main.tf>

ovf_properties {
    key              = "guestinfo.hostname"
    value            = format("%s-%s",var.volterra["cluster_name"], each.value)
  }

With above, for below value
var.volterra[“cluster_name”] = shangl-site2
each.value = 0

I can have
value = shangl-site2-0

Daniel Siefert:
Thanks!