Rename worker pool modules' count variable to worker_count

* This change affects users who use worker pools on AWS, GCP, or
Azure with a Container Linux derivative
* Rename worker pool modules' `count` variable to `worker_count`,
because `count` will be a reserved variable name in Terraform v0.12
This commit is contained in:
Dalton Hubble
2019-05-27 16:33:21 -07:00
parent d9e7195477
commit c565f9fd47
11 changed files with 34 additions and 22 deletions

View File

@ -22,7 +22,7 @@ variable "network" {
# instances
variable "count" {
variable "worker_count" {
type = "string"
default = "1"
description = "Number of worker compute instances the instance group should manage"

View File

@ -8,7 +8,7 @@ resource "google_compute_region_instance_group_manager" "workers" {
instance_template = "${google_compute_instance_template.worker.self_link}"
region = "${var.region}"
target_size = "${var.count}"
target_size = "${var.worker_count}"
target_pools = ["${google_compute_target_pool.workers.self_link}"]
named_port {