github.com/justnom/terraform@v0.5.4-0.20180524223219-170a1530d1ca/terraform/test-fixtures/apply-multi-var-order/main.tf (about) 1 variable "count" { default = 15 } 2 3 resource "aws_instance" "bar" { 4 count = "${var.count}" 5 foo = "index-${count.index}" 6 } 7 8 output "should-be-11" { 9 value = "${element(aws_instance.bar.*.foo, 11)}" 10 }