github.com/hugorut/terraform@v1.1.3/src/terraform/testdata/apply-multi-var-count-dec/main.tf (about) 1 variable "num" {} 2 3 resource "aws_instance" "foo" { 4 count = "${var.num}" 5 value = "foo" 6 } 7 8 resource "aws_instance" "bar" { 9 ami = "special" 10 11 value = "${join(",", aws_instance.foo.*.id)}" 12 }