github.com/medzin/terraform@v0.11.11/config/test-fixtures/validate-prov-conn-splat-self/main.tf (about) 1 resource "aws_instance" "bar" { 2 connection { 3 host = "${element(aws_instance.bar.*.private_ip, 0)}" 4 } 5 6 provisioner "local-exec" {} 7 }