github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/terraform/test-fixtures/apply-multi-var-count-dec/main.tf (about)

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