8 lines
170 B
Terraform
8 lines
170 B
Terraform
|
resource "aws_instance" "foo" {}
|
||
|
|
||
|
resource "aws_instance" "bar" {
|
||
|
provisioner "local-exec" {
|
||
|
command = "${element(aws_instance.foo.*.private_ip, 0)}"
|
||
|
}
|
||
|
}
|