github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/terraform/test-fixtures/apply-multi-var/main.tf (about)

     1  variable "count" {}
     2  
     3  resource "aws_instance" "bar" {
     4      foo = "bar${count.index}"
     5      count = "${var.count}"
     6  }
     7  
     8  output "output" {
     9      value = "${join(",", aws_instance.bar.*.foo)}"
    10  }