You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assuming terraform.tfvars is the Terragrunt configuration file, I was not able to find any way to pass variables values containing ${ (the expected escape sequence $${ doesn't work). In the repro bellow my last resort was to octal escape the dollar sign:
Terraform code (main.tf)
variable "var1" {}
resource "random_pet" "pet" {
prefix = "${data.template_file.a_template.rendered}-"
}
data "template_file" "a_template" {
template = "${var.var1}"
vars {
text = "replacement"
}
}
Terragrunt configuration (terraform.tfvars)
terragrunt {
terraform {
source = "./"
}
}
var1 = "\044{text}" // "${text}" fails with [terragrunt] 2018/09/12 00:12:09 Invalid interpolation syntax. Expected syntax of the form '${function_name()}', but got '${text}'
Duplicate of #544. Terragrunt uses an ugly regex to process interpolations and escapes and comments don't work properly Will hopefully be fixed when we update to to HCL2 in #466.
Assuming
terraform.tfvars
is the Terragrunt configuration file, I was not able to find any way to pass variables values containing${
(the expected escape sequence$${
doesn't work). In the repro bellow my last resort was to octal escape the dollar sign:Terraform code (
main.tf
)Terragrunt configuration (
terraform.tfvars
)Maybe related to: #466
The text was updated successfully, but these errors were encountered: