Skip to content

Commit

Permalink
Adds comment for help troubleshooting issues with terraform tfstate (g…
Browse files Browse the repository at this point in the history
…oogleforgames#3822)

* Adds comment to assist with troubleshooting issues with terraform tfstate
  • Loading branch information
igooch authored May 16, 2024
1 parent 9cc12e6 commit ca58471
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion build/terraform/e2e/state-bucket/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@
// Run:
// terraform apply -var project="<YOUR_GCP_ProjectID>"

// If you are getting `Error: googleapi: Error 409: Your previous request to create the named bucket
// succeeded and you already own it., conflict` this means that your local tfstate file has
// divereged from the tfstate file in Google Cloud Storage (GCS). To use the GCS version of the
// tfstate, delete your local .terraform and .tfstate files. You may need to run
// `sudo chown -R yourusername .` to be able to delete them. Then navigate to this directory and run
// `terraform init`. Pull in the tfstate file from gcloud with
// `terraform import google_storage_bucket.default agones-images-e2e-infra-bucket-tfstate`.

// # GCS bucket for holding the Terraform state of the e2e Terraform config.

terraform {
Expand All @@ -40,4 +48,4 @@ resource "google_storage_bucket" "default" {
versioning {
enabled = true
}
}
}

0 comments on commit ca58471

Please sign in to comment.