github.com/paybyphone/terraform@v0.9.5-0.20170613192930-9706042ddd51/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  }