github.com/jrasell/terraform@v0.6.17-0.20160523115548-2652f5232949/config/test-fixtures/validate-prov-conn-splat-other/main.tf (about)

     1  resource "aws_instance" "foo" {}
     2  
     3  resource "aws_instance" "bar" {
     4      connection {
     5          host = "${element(aws_instance.foo.*.private_ip, 0)}"
     6      }
     7  
     8      provisioner "local-exec" {}
     9  }