You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to terrafo...@googlegroups.com
I saw in the HCL code that it should support escaping quotes if i use \" , but when i tried it in terraform I got errors for that.
Am I using it wrong?
Ryan B
unread,
Oct 10, 2014, 2:07:33 PM10/10/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to terrafo...@googlegroups.com
I ran in to the same thing. If you can use single quoutes it works fine.
-r
Ron Pantofaro
unread,
Oct 10, 2014, 2:09:59 PM10/10/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to terrafo...@googlegroups.com
I had a very complex command line, that bash escaping it with single quotes turned out to be pretty ugly. The other alternative was to prepare a bash script, but that was an overkill. Both weren't my number one choices, but i went with the first.
It would be great to have the escaping in terraform as well.
Ryan B
unread,
Oct 10, 2014, 2:46:15 PM10/10/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to terrafo...@googlegroups.com
Actually I prefer the script method over a long complex command. The only drawbacks are you can't use built in terraform variables in your script. Also i seem to remember from my testing that you can't use parameters/switches in the script line. You can only provide the scriptfile to be copied and executed remotely. Which means if you wanted to run a script you wrote that takes parameters you'll have to do it in 2 steps: you'll need to first upload it with the file provisioner then use the remote-exec inline provisioner to execute it with parameters/switches.
-r
Ron Pantofaro
unread,
Oct 10, 2014, 2:55:06 PM10/10/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to terrafo...@googlegroups.com
Oh I just copy my scripts and then run them with remote-exec.
Mitchell Hashimoto
unread,
Oct 10, 2014, 7:10:28 PM10/10/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ron Pantofaro, <terraform-tool@googlegroups.com>
Ron,
We just pushed a fix to hashicorp/hcl to fix this. The next version of
Terraform will include this fix.