cmur2 / language-terraform

Terraform.io support for Atom
MIT License
49 stars 32 forks source link

remote-exec escape sequences #44

Open montge opened 5 years ago

montge commented 5 years ago

I'm working on figuring out the best way to handle escape sequences for remote-exec. While this appears to be valid JSON, in the atom package it doesn't highlight properly.

provisioner "remote-exec" {
    inline = [
"sudo grep -qxF 'HTTP_PROXY=\"myproxy:8080\"' /etc/sysconfig/docker || echo 'HTTP_PROXY=\"http://myproxy:8080\"' | sudo tee -a /etc/sysconfig/docker",
"sudo grep -qxF 'http_proxy=\"${HTTP_PROXY}\"' /etc/sysconfig/docker || echo 'http_proxy=\"${HTTP_PROXY}\"' | sudo tee -a /etc/sysconfig/docker",
]
}

Note I have a open issue on the terraform side to verify how to handle the $ and {}

cmur2 commented 4 years ago

@montge is this still an issue for you? Could you give the link to the issue on terraform side?