github.com/LorbusChris/terraform@v0.11.12-beta1/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 }