From 5d65dd6924af4a0e7efbf113fc928fc77ac66dde Mon Sep 17 00:00:00 2001 From: Cristian Magherusan-Stanciu Date: Mon, 5 Oct 2026 17:00:34 +0200 Subject: [PATCH 1/2] docs(terraform): use placeholder buckets in AWS and GCP dev backend examples The AWS dev example named a bucket in another account; the GCP dev example and README named a bucket that is neither a placeholder nor the CI bucket. Closes #481 --- .../environments/aws/backends/dev.tfbackend.example | 9 +++++---- terraform/environments/gcp/README.md | 2 +- .../environments/gcp/backends/dev.tfbackend.example | 6 +++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/terraform/environments/aws/backends/dev.tfbackend.example b/terraform/environments/aws/backends/dev.tfbackend.example index 514656f8a..82308ed1b 100644 --- a/terraform/environments/aws/backends/dev.tfbackend.example +++ b/terraform/environments/aws/backends/dev.tfbackend.example @@ -1,4 +1,5 @@ # AWS Terraform Backend Configuration - Development +# CI does not use this file: it builds its backend from the TF_BACKEND_AWS secret. # Copy to dev.tfbackend and customize with your values # # Usage: @@ -6,13 +7,13 @@ # # Edit dev.tfbackend with your values, then: # terraform init -backend-config=backends/dev.tfbackend -bucket = "cudly-terraform-state-dev" -key = "dev/terraform.tfstate" +bucket = "your-cudly-terraform-state-aws-dev" +key = "github-dev/terraform.tfstate" region = "us-east-1" encrypt = true use_lockfile = true # profile = "your-aws-profile" # Optional: AWS CLI profile # Note: Create the S3 bucket before first use: -# aws s3 mb s3://cudly-terraform-state-dev --region us-east-1 -# aws s3api put-bucket-versioning --bucket cudly-terraform-state-dev --versioning-configuration Status=Enabled +# aws s3 mb s3://your-cudly-terraform-state-aws-dev --region us-east-1 +# aws s3api put-bucket-versioning --bucket your-cudly-terraform-state-aws-dev --versioning-configuration Status=Enabled diff --git a/terraform/environments/gcp/README.md b/terraform/environments/gcp/README.md index df53a662a..4d22a9a77 100644 --- a/terraform/environments/gcp/README.md +++ b/terraform/environments/gcp/README.md @@ -65,7 +65,7 @@ gcloud services enable \ ### 4. Create Terraform State Bucket ```bash -BUCKET_NAME="cudly-terraform-state-dev" +BUCKET_NAME="your-cudly-terraform-state-gcp-dev" gsutil mb -p $PROJECT_ID -l us-central1 gs://$BUCKET_NAME gsutil versioning set on gs://$BUCKET_NAME ``` diff --git a/terraform/environments/gcp/backends/dev.tfbackend.example b/terraform/environments/gcp/backends/dev.tfbackend.example index 32fbae95f..80a156b4e 100644 --- a/terraform/environments/gcp/backends/dev.tfbackend.example +++ b/terraform/environments/gcp/backends/dev.tfbackend.example @@ -6,9 +6,9 @@ # # Edit dev.tfbackend with your values, then: # terraform init -backend-config=backends/dev.tfbackend -bucket = "cudly-terraform-state-dev" +bucket = "your-cudly-terraform-state-gcp-dev" prefix = "dev" # Note: Create the GCS bucket before first use: -# gsutil mb -p YOUR_PROJECT_ID -l US gs://cudly-terraform-state-dev -# gsutil versioning set on gs://cudly-terraform-state-dev +# gsutil mb -p YOUR_PROJECT_ID -l US gs://your-cudly-terraform-state-gcp-dev +# gsutil versioning set on gs://your-cudly-terraform-state-gcp-dev From 58e340d0554b1f331fb371543356effaef393203 Mon Sep 17 00:00:00 2001 From: Cristian Magherusan-Stanciu Date: Mon, 5 Oct 2026 17:11:05 +0200 Subject: [PATCH 2/2] fix(gcp): align dev backend example prefix with CI (github-dev) --- terraform/environments/gcp/backends/dev.tfbackend.example | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/environments/gcp/backends/dev.tfbackend.example b/terraform/environments/gcp/backends/dev.tfbackend.example index 80a156b4e..a4cdb21e0 100644 --- a/terraform/environments/gcp/backends/dev.tfbackend.example +++ b/terraform/environments/gcp/backends/dev.tfbackend.example @@ -7,7 +7,7 @@ # terraform init -backend-config=backends/dev.tfbackend bucket = "your-cudly-terraform-state-gcp-dev" -prefix = "dev" +prefix = "github-dev" # Note: Create the GCS bucket before first use: # gsutil mb -p YOUR_PROJECT_ID -l US gs://your-cudly-terraform-state-gcp-dev