terraform/config/testdata/validate-count-resource-var.../main.tf

6 lines
116 B
HCL

resource "aws_instance" "foo" {}
resource "aws_instance" "web" {
count = "${length(aws_instance.foo.*.bar)}"
}