terraform/config/testdata/validate-prov-splat-other/main.tf

8 lines
170 B
Terraform
Raw Normal View History

resource "aws_instance" "foo" {}
resource "aws_instance" "bar" {
provisioner "local-exec" {
command = "${element(aws_instance.foo.*.private_ip, 0)}"
}
}