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