Open consideRatio opened 1 year ago
Had I made changes to terraform state that wasn't captured by the remote state or similar?
Most likely not, as terraform prints out this error precisely to prevent that from happening.
I just ran into this again because I upgraded my terraform version.
I just ran into this again because I upgraded my terraform version.
Erik wrote:
Should I do
terraform init -migrate-state
here? I'm not sure what this is about.Yuvi wrote:
ah, look for hidden files in your current directory you most likely do not want -migrate-state this usually means terraform is not looking for state files where it should - which is on GCS remotely, but locally.
Erik wrote: Ah I moved away my found
.terraform
folder, and did (fromterraform/gcp
):terraform init -backend-config=backends/default-backend.hcl
This resolved the situation, but I don't understand the details here. What caused this? Had I made changes to terraform state that wasn't captured by the remote state or similar?