Evaluate strings as templates inside a template
victorserbu2709 opened this issue · 0 comments
victorserbu2709 commented
Hello.
it is possible to evaluate a variable that contains a template string?
Ex:
variable "datacenter" {
type = string
default = "dc1"
}
variable "loki_config" {
type = string
default =<<EOF
DC [[ var "datacenter" . | print ]].
EOF
}
Something similar to https://helm.sh/docs/howto/charts_tips_and_tricks/#using-the-tpl-function
Thanks.