andrewperlas / gcp-resume

Cloud resume challenge hosted on GCP
0 stars 0 forks source link

Separate terraform backends for storing of .tfstate of each env #6

Closed andrewperlas closed 5 months ago

andrewperlas commented 6 months ago

Github Action Workflow #39 and #40 failed due to staging resources referring to dev .tfstate

google_storage_bucket.terraform_state: Refreshing state... [id=dev_tfstate_bucket]
google_storage_bucket.static_website: Refreshing state... [id=dev_resume_bucket]

Unable to create the stg buckets because dev .tfstate resources are being referenced

andrewperlas commented 6 months ago

Possible solution is to use terraform workspaces for each env? https://blog.gruntwork.io/how-to-manage-multiple-environments-with-terraform-using-workspaces-98680d89a03e

andrewperlas commented 5 months ago

[CLOSING] - No longer separating this project into separate environments