Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Evaluate strings as templates inside a template #575

Open
victorserbu2709 opened this issue Aug 22, 2024 · 0 comments
Open

Evaluate strings as templates inside a template #575

victorserbu2709 opened this issue Aug 22, 2024 · 0 comments

Comments

@victorserbu2709
Copy link

victorserbu2709 commented Aug 22, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant