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
Hi,
Newbee on Terraform.
Any guide on how to use/store the multi line string in variable in Terraform's var file terraform.tfvars? We're trying to do some test in AWS with Terraform, like "aws_launch_configuration" with a multiline string "user_data".
Or we have to use the json format for the Terraform template?
Sample:
user_data
#description
{
a: ${var.a}
b: ${var.b}
}
Thanks,
Dean
Mitchell Hashimoto
unread,
Aug 5, 2014, 11:42:55 PM8/5/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 Dean Song, terrafo...@googlegroups.com
Dean,
Do lines spanning multiple newlines not work? They should work. If
not, they'll certainly work in Terraform 0.2 (our new grammar we wrote
accepts them).
Another option is to put that data out in a separate file and use the
`file` function.
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, dean.s...@gmail.com
Thanks Mitchell.
After upgrade to latest 0.1.1 and with the "file" function, I can get the multi line content to the "user_data" var, but seems it didn't get the right value for the variables in the file, like it's still ${var.a}, but not the true value of "a"?