github.com/rstandt/terraform@v0.12.32-0.20230710220336-b1063613405c/config/testdata/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 }