Fixed example

The cat should actually be an echo if you want to write the IP address to a file
This commit is contained in:
Tushar Pokle 2014-07-30 21:56:02 +10:00
parent abb94de631
commit 7ff36710a6
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ to run commands on the resource.
resource "aws_instance" "web" {
...
provisioner "local-exec" {
command = "cat ${aws_instance.web.private_ip} >> private_ips.txt"
command = "echo ${aws_instance.web.private_ip} >> private_ips.txt"
}
}
```