github.com/paybyphone/terraform@v0.9.5-0.20170613192930-9706042ddd51/config/test-fixtures/validate-prov-splat-other/main.tf (about)

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