add var 'worker_group_count' to replace 'length()' calls

This commit is contained in:
Andrew Lavery
2018-07-19 10:31:37 -07:00
parent 2814efcb8a
commit 5b1cf24931
3 changed files with 9 additions and 3 deletions

View File

@@ -75,7 +75,7 @@ EOF
data "template_file" "userdata" {
template = "${file("${path.module}/templates/userdata.sh.tpl")}"
count = "${length(var.worker_groups)}"
count = "${var.worker_group_count}"
vars {
region = "${data.aws_region.current.name}"