github.com/burmuley/terraform@v0.11.12-beta1/config/test-fixtures/validate-var-multi-func/main.tf (about) 1 resource "aws_instance" "foo" { 2 count = 3 3 } 4 5 resource "aws_instance" "bar" { 6 foo = "${element(aws_instance.foo.*.id, 0)}" 7 }