github.com/heimweh/terraform@v0.7.4/terraform/test-fixtures/plan-count-var/main.tf (about)

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