github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/plan-destroy-interpolated-count/main.tf (about)

     1  variable "list" {
     2    default = ["1", "2"]
     3  }
     4  
     5  resource "aws_instance" "a" {
     6    count = "${length(var.list)}"
     7  }
     8  
     9  output "out" {
    10    value = "${aws_instance.a.*.id}"
    11  }