diff --git a/demo-2/instance.tf b/demo-2/instance.tf index 097a29f..f75113a 100644 --- a/demo-2/instance.tf +++ b/demo-2/instance.tf @@ -15,6 +15,7 @@ resource "aws_instance" "example" { provisioner "remote-exec" { inline = [ "chmod +x /tmp/script.sh", + "sudo sed -i -e 's/\r$//' /tmp/script.sh", # Remove the spurious CR characters. "sudo /tmp/script.sh", ] }