Skip to content

Commit

Permalink
Adds comment to assist with troubleshooting issues with terraform tfs…
Browse files Browse the repository at this point in the history
…tate
  • Loading branch information
igooch committed May 16, 2024
1 parent 9cc12e6 commit b98ce41
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 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,13 @@
// 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 gcloud. To use the gcloud 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 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 +47,4 @@ resource "google_storage_bucket" "default" {
versioning {
enabled = true
}
}
}

0 comments on commit b98ce41

Please sign in to comment.