GoogleCloudPlatform / gke-terraform-generator

gke-tf was created to streamline the creation of customized Terraform source files that build GKE clusters and supporting resources in GCP.
Apache License 2.0
55 stars 24 forks source link

Hardcoded "-a" zone does not work for all regions #6

Closed ludoo closed 5 years ago

ludoo commented 5 years ago

The bastion instance resource hardcodes the zone to "${var.region}-a", which does not work for all regions, eg "europe-west1".

You probably want an additional "zone" variable, and then using that both for setting the resource's "zone" attribute, and the zone arg in the gcloud ssh command. Both are in network.tf.