github.com/nevins-b/terraform@v0.3.8-0.20170215184714-bbae22007d5a/config/test-fixtures/validate-prov-splat-self/main.tf (about)

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