Skip to content

Commit

Permalink
chore(examples): update terraform example
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
thsig authored and eysi09 committed Jan 20, 2020
1 parent 4030881 commit 043afec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/terraform-gke/gke.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 043afec

Please sign in to comment.