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

8 lines
170 B
HCL

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