From a4feb7e29318ecdc8e159602998597061e4c8dcd Mon Sep 17 00:00:00 2001 From: rawanmahdi Date: Sat, 24 Feb 2024 11:33:53 -0500 Subject: [PATCH] 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