github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/apply-multi-var-order/main.tf (about) 1 variable "num" { 2 default = 15 3 } 4 5 resource "aws_instance" "bar" { 6 count = "${var.num}" 7 foo = "index-${count.index}" 8 } 9 10 output "should-be-11" { 11 value = "${element(aws_instance.bar.*.foo, 11)}" 12 }