From a4feb7e29318ecdc8e159602998597061e4c8dcd Mon Sep 17 00:00:00 2001 From: rawanmahdi Date: Sat, 24 Feb 2024 11:33:53 -0500 Subject: [PATCH 1/2] Added remote backend to store terraform state --- cloud-infra/main.tf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cloud-infra/main.tf b/cloud-infra/main.tf index 6236e63..a2e5c4e 100644 --- a/cloud-infra/main.tf +++ b/cloud-infra/main.tf @@ -10,6 +10,13 @@ provider "google" { zone = var.zone } +terraform { + backend "gcs" { + bucket = "automate_terraform_state" + prefix = "terraform/state" + } +} + resource "google_container_cluster" "automl_cluster" { name = "automl-cluster" location = var.zone From c7b1fc0335a6915610607ee2edd4f57822facd69 Mon Sep 17 00:00:00 2001 From: rawanmahdi Date: Mon, 26 Feb 2024 05:53:32 -0500 Subject: [PATCH 2/2] testing file with new bucket --- 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 a2e5c4e..e053965 100644 --- a/cloud-infra/main.tf +++ b/cloud-infra/main.tf @@ -74,7 +74,7 @@ resource "google_container_node_pool" "ml_node_pool" { // Create new storage bucket in the US multi-region with standard storage resource "google_storage_bucket" "static" { project = var.project - name = "automate-ml-datasets" + name = "automate-ml-datasets2" location = "us-east1" storage_class = "standard"