From 27e69ef8322808a99e916042cde59e460f84c3d2 Mon Sep 17 00:00:00 2001 From: Kai Siren Date: Fri, 31 May 2024 20:51:46 -0700 Subject: [PATCH] bump project configs part 3 --- README.md | 6 +++--- infrastructure/application/state.tf | 2 +- infrastructure/ingress/state.tf | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 857095a..30e2cd9 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ Create a terraform state bucket via https://console.cloud.google.com/, then set ```yaml # config.yml -bucket: coilysiren-k8s-gpc-tfstate-3 +bucket: coilysiren-k8s-gpc-tfstate-5 ``` Then you must set its name manually in every `state.tf` file. Open every `state.tf` file in the repo. You will see a block like this: @@ -129,7 +129,7 @@ Then you must set its name manually in every `state.tf` file. Open every `state. ```hcl terraform { backend "gcs" { - bucket = "coilysiren-k8s-gpc-tfstate-3" + bucket = "coilysiren-k8s-gpc-tfstate-5" prefix = "terraform/state" } } @@ -143,7 +143,7 @@ Finally, import you import the bucket into terraform. # $SHELL $ cd infrastructure/foundation/ $ terraform init -$ terraform import google_storage_bucket.default coilysiren-k8s-gpc-tfstate-3 +$ terraform import google_storage_bucket.default coilysiren-k8s-gpc-tfstate-5 ``` Note that, when you deploy in the next step, you might have to modify the state bucket's region. The goal is to avoid replacing the state bucket. diff --git a/infrastructure/application/state.tf b/infrastructure/application/state.tf index d2d2b16..16cccdb 100644 --- a/infrastructure/application/state.tf +++ b/infrastructure/application/state.tf @@ -1,6 +1,6 @@ terraform { backend "gcs" { - bucket = "coilysiren-k8s-gpc-tfstate-3" + bucket = "coilysiren-k8s-gpc-tfstate-5" prefix = "terraform/state/application" } } diff --git a/infrastructure/ingress/state.tf b/infrastructure/ingress/state.tf index 8a20fe4..5c4653e 100644 --- a/infrastructure/ingress/state.tf +++ b/infrastructure/ingress/state.tf @@ -1,6 +1,6 @@ terraform { backend "gcs" { - bucket = "coilysiren-k8s-gpc-tfstate-3" + bucket = "coilysiren-k8s-gpc-tfstate-5" prefix = "terraform/state/ingress" } }