github.com/gmlexx/terraform@v0.9.6-0.20170514090029-1532b2a67680/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  }