github.com/hashicorp/terraform-plugin-sdk@v1.17.2/terraform/testdata/input-submodule-count/mod/main.tf (about) 1 variable "instance_count" { 2 } 3 4 resource "aws_instance" "foo" { 5 count = "${var.instance_count}" 6 } 7 8 module "submod" { 9 source = "./submod" 10 list = ["${aws_instance.foo.*.id}"] 11 }