Skip to content

Commit d470ddc

Browse files
authored
Merge pull request #24 from matttrach/fix-quote-issue
write to config in a way that avoids quoting issues
2 parents b409532 + 948d270 commit d470ddc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

main.tf

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ resource "null_resource" "write_config" {
3737
}
3838
provisioner "local-exec" {
3939
command = <<-EOT
40-
echo "${local.config_content}" > ${each.key}
40+
set -e
41+
set -x
42+
cat << 'EOF' > ${each.key}
43+
${local.config_content}
44+
EOF
4145
EOT
4246
}
4347
provisioner "local-exec" {

0 commit comments

Comments
 (0)