github.com/alkar/terraform@v0.9.6-0.20170517124458-a4cddf6ebf59/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 }