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