File tree 1 file changed +4
-5
lines changed
1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ limitations under the License.
17
17
// Provides access to available Google Container Engine versions in a zone for a given project.
18
18
// https://www.terraform.io/docs/providers/google/d/google_container_engine_versions.html
19
19
data "google_container_engine_versions" "on-prem" {
20
- zone = var. zone
20
+ location = var. zone
21
21
project = var. project
22
22
}
23
23
@@ -27,7 +27,7 @@ data "google_container_engine_versions" "on-prem" {
27
27
// Create the GKE Cluster
28
28
resource "google_container_cluster" "primary" {
29
29
name = " tracing-demo-space"
30
- zone = var. zone
30
+ location = var. zone
31
31
initial_node_count = 1
32
32
min_master_version = data. google_container_engine_versions . on-prem . latest_master_version
33
33
@@ -50,7 +50,7 @@ resource "google_container_cluster" "primary" {
50
50
// Here we use gcloud to gather authentication information about our new cluster and write that
51
51
// information to kubectls config file
52
52
provisioner "local-exec" {
53
- command = " gcloud container clusters get-credentials ${ google_container_cluster . primary . name } --zone ${ google_container_cluster . primary . zone } --project ${ var . project } "
53
+ command = " gcloud container clusters get-credentials ${ google_container_cluster . primary . name } --zone ${ google_container_cluster . primary . location } --project ${ var . project } "
54
54
}
55
55
}
56
56
@@ -71,6 +71,5 @@ output "cluster_name" {
71
71
}
72
72
73
73
output "primary_zone" {
74
- value = google_container_cluster. primary . zone
74
+ value = google_container_cluster. primary . location
75
75
}
76
-
You can’t perform that action at this time.
0 commit comments