@@ -5,7 +5,7 @@ Licensed under the Apache License, Version 2.0 (the "License");
5
5
you may not use this file except in compliance with the License.
6
6
You may obtain a copy of the License at
7
7
8
- https://www.apache.org/licenses/LICENSE-2.0
8
+ https://www.apache.org/licenses/LICENSE-2.0
9
9
10
10
Unless required by applicable law or agreed to in writing, software
11
11
distributed under the License is distributed on an "AS IS" BASIS,
@@ -23,13 +23,13 @@ limitations under the License.
23
23
// Create the primary cluster for this project.
24
24
// /////////////////////////////////////////////////////////////////////////////////////
25
25
data "google_container_engine_versions" "gke_versions" {
26
- zone = var. zone
26
+ location = var. zone
27
27
}
28
28
29
29
// Create the GKE Cluster
30
30
resource "google_container_cluster" "primary" {
31
31
name = " stackdriver-monitoring-tutorial"
32
- zone = var. zone
32
+ location = var. zone
33
33
initial_node_count = 1
34
34
min_master_version = data. google_container_engine_versions . gke_versions . latest_master_version
35
35
@@ -59,7 +59,7 @@ resource "google_container_cluster" "primary" {
59
59
}
60
60
61
61
provisioner "local-exec" {
62
- command = " gcloud container clusters get-credentials ${ google_container_cluster . primary . name } --zone ${ google_container_cluster . primary . zone } --project ${ var . project } "
62
+ command = " gcloud container clusters get-credentials ${ google_container_cluster . primary . name } --zone ${ google_container_cluster . primary . location } --project ${ var . project } "
63
63
}
64
64
65
65
provisioner "local-exec" {
@@ -105,4 +105,3 @@ resource "google_project_service" "logging" {
105
105
service = " logging.googleapis.com"
106
106
disable_on_destroy = false
107
107
}
108
-
0 commit comments