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:
parent
abb94de631
commit
7ff36710a6
|
@ -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"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue