10 lines
186 B
Terraform
10 lines
186 B
Terraform
|
resource "aws_instance" "foo" {}
|
||
|
|
||
|
resource "aws_instance" "bar" {
|
||
|
connection {
|
||
|
host = "${element(aws_instance.foo.*.private_ip, 0)}"
|
||
|
}
|
||
|
|
||
|
provisioner "local-exec" {}
|
||
|
}
|