Skip to content

Commit

Permalink
Added remote backend to store terraform state
Browse files Browse the repository at this point in the history
  • Loading branch information
rawanmahdi committed Feb 24, 2024
1 parent 14e0d38 commit a4feb7e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cloud-infra/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a4feb7e

Please sign in to comment.