andrewperlas / gcp-resume

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

Store tfstate onto separate infra project #7

Open andrewperlas opened 4 months ago

andrewperlas commented 4 months ago

So that terraform apply -destroy doesn't affect the storage that the .tfstate file will live in, I have created a separate GCP project to store the file. Steps to complete this task.

andrewperlas commented 4 months ago

Tried setting this up, but wasn't sure how the GA workflow file would be able to refer to two separate projects for all the terraform jobs. For now, storing the .tfstate file in a bucket within the same GCP project. Can revisit this in the future.