github.com/hugorut/terraform@v1.1.3/src/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  }