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