github.com/nevins-b/terraform@v0.3.8-0.20170215184714-bbae22007d5a/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  }