Skip to content
This repository was archived by the owner on Feb 18, 2025. It is now read-only.

Commit 20b4163

Browse files
Change zone as location
1 parent dc5cfc0 commit 20b4163

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

terraform/main.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ limitations under the License.
2626
// Provides access to available Google Container Engine versions in a zone for a given project.
2727
// https://www.terraform.io/docs/providers/google/d/google_container_engine_versions.html
2828
data "google_container_engine_versions" "on-prem" {
29-
zone = var.zone
30-
project = var.project
29+
location = var.zone
30+
project = var.project
3131
}
3232

3333
///////////////////////////////////////////////////////////////////////////////////////
@@ -68,7 +68,7 @@ resource "google_bigquery_dataset" "gke-bigquery-dataset" {
6868
// https://www.terraform.io/docs/providers/google/d/google_container_cluster.html
6969
resource "google_container_cluster" "primary" {
7070
name = "stackdriver-logging"
71-
zone = var.zone
71+
location = var.zone
7272
initial_node_count = 2
7373
min_master_version = data.google_container_engine_versions.on-prem.latest_master_version
7474

@@ -84,7 +84,7 @@ resource "google_container_cluster" "primary" {
8484
// These local-execs are used to provision the sample service
8585
// These local-execs are used to provision the sample service
8686
provisioner "local-exec" {
87-
command = "gcloud container clusters get-credentials ${google_container_cluster.primary.name} --zone ${google_container_cluster.primary.zone} --project ${var.project}"
87+
command = "gcloud container clusters get-credentials ${google_container_cluster.primary.name} --zone ${google_container_cluster.primary.location} --project ${var.project}"
8888
}
8989

9090
provisioner "local-exec" {

0 commit comments

Comments
 (0)