Issue
In standard shell, you can include a line break as so:
$a="line1\nline2"
But in this command:
resource "null_resource" "crypt_folio" {
provisioner "local-exec" {
command = "echo 'line1\nline2' > filo.txt"
}
}
It will fail.
How to properly escape a line break? I tried a second backslash, and this similarly failed.
Solution
Putting the -e flag on may do the trick: echo -e 'line1\nline2' > filo.txt
Answered By - macosmi