github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/apply-interpolated-count/main.tf (about) 1 variable "instance_count" { 2 default = 1 3 } 4 5 resource "aws_instance" "test" { 6 count = "${var.instance_count}" 7 } 8 9 resource "aws_instance" "dependent" { 10 count = "${length(aws_instance.test)}" 11 }