I'm trying to execute multiple command while using the local-exec provisioner, however it only seems to execute the last command. For example I have the following:
provisioner "local-exec" {
command = "echo Host ${aws_instance.bastion.public_ip} >> ${var.local_ssh_config}"
command = ""echo IdentityFile ${var.local_identity_file} >> ${var.local_ssh_config}"
}
At the end of the terraform run, it only see the second entry (IdentifyFile ... ) added to the file. What am I doing wrong or missing and how can I fix it?