From 77bf1f40aef5bda495cbee3efb9a097027202f3d Mon Sep 17 00:00:00 2001 From: rawanmahdi Date: Thu, 16 Nov 2023 11:43:37 -0500 Subject: [PATCH 1/2] Change location param in cluster/node definitions to zone rather than region --- cloud-infra/main.tf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cloud-infra/main.tf b/cloud-infra/main.tf index aaba2c6..9423918 100644 --- a/cloud-infra/main.tf +++ b/cloud-infra/main.tf @@ -12,7 +12,7 @@ provider "google" { resource "google_container_cluster" "automl_cluster" { name = "automl-cluster" - location = var.region + location = var.zone project = var.project remove_default_node_pool = true @@ -22,7 +22,7 @@ resource "google_container_cluster" "automl_cluster" { //single node "node pool" for frontend and backend pods resource "google_container_node_pool" "febe_node_pool" { name = "frontend-backend-node-pool" - location = var.region + location = var.zone cluster = google_container_cluster.automl_cluster.name node_count = 1 @@ -45,7 +45,7 @@ resource "google_container_node_pool" "febe_node_pool" { //pool for machine learning (allows us to adjust the compute later if needed) resource "google_container_node_pool" "ml_node_pool" { name = "machine-learning-node-pool" - location = var.region + location = var.zone cluster = google_container_cluster.automl_cluster.name node_count = 1 From 54ca82c774d76f728a526663f59baff8fa1c5743 Mon Sep 17 00:00:00 2001 From: rawanmahdi Date: Fri, 17 Nov 2023 05:56:29 -0500 Subject: [PATCH 2/2] Swap region to us-east1-b --- cloud-infra/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud-infra/main.tf b/cloud-infra/main.tf index 9423918..3c9729f 100644 --- a/cloud-infra/main.tf +++ b/cloud-infra/main.tf @@ -1,6 +1,6 @@ variable "project" { default = "automateml" } variable "region" { default = "us-east1" } -variable "zone" { default = "us-east1-a" } +variable "zone" { default = "us-east1-b" } variable "sa_email" { default = "owner-sa@automateml.iam.gserviceaccount.com" } provider "google" {