github.com/hashicorp/terraform-plugin-sdk@v1.17.2/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  }