我安装了terraform,并且在运行terraform validate时遇到了解析错误。如何解决这个问题。
我正在运行Terraform v0.11.9,并且在运行terraform validate时遇到解析错误
provisioner "local-exec" {
command = "sshpass -f /work/pwdfile.tfvars ssh -o \"StrictHostKeyChecking=no\" -t ${var.username1}@${self.resource_configuration.${var.catalog_name}.ip_address} \"echo $(cat /work/pwdfile.tfvars) | sudo -S yum update -y\""
}
expected result should pass terraform validate but actual output is
parse error at 1:117: expected "}" but found invalid sequence "$"
答案 0 :(得分:0)
您尝试使用双$
吗?
它需要逃脱