From 043afecb27b3f8c47e772001332835e63bf3c2af Mon Sep 17 00:00:00 2001 From: Thorarinn Sigurdsson Date: Fri, 17 Jan 2020 15:26:51 +0100 Subject: [PATCH] chore(examples): update terraform example The 3.0 version of the Terraform Google provider changed the usage of the region, zone and location fields, which resulted in errors when running `garden plugins kubernetes cluster-init`. --- examples/terraform-gke/gke.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/terraform-gke/gke.tf b/examples/terraform-gke/gke.tf index 9f5aac2ef2..8742cd1069 100644 --- a/examples/terraform-gke/gke.tf +++ b/examples/terraform-gke/gke.tf @@ -39,14 +39,14 @@ resource "google_compute_subnetwork" "default" { } data "google_container_engine_versions" "default" { - zone = "${var.gcp_zone}" + location = "${var.gcp_zone}" } # See all available options at https://www.terraform.io/docs/providers/google/r/container_cluster.html resource "google_container_cluster" "primary" { name = "my-gke-cluster" - zone = "${var.gcp_zone}" + location = "${var.gcp_zone}" initial_node_count = 3 min_master_version = "${data.google_container_engine_versions.default.latest_master_version}" network = "${google_compute_subnetwork.default.name}"