terraform/config/testdata/validate-prov-splat-self/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.bar.*.private_ip, 0)}"
}
}