website: Change local-exec example
This commit is contained in:
parent
a4f7401458
commit
10383cfc67
|
@ -18,7 +18,7 @@ to run commands on the resource.
|
|||
resource "aws_instance" "web" {
|
||||
...
|
||||
provisioner "local-exec" {
|
||||
command = "consul join ${aws_instance.web.private_ip}"
|
||||
command = "cat ${aws_instance.web.private_ip} >> private_ips.txt"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue