helpful-shoe-41967
04/12/2022, 7:55 PMpulumi update
the process want to update my resource (db-instance) on my gcp even when diff operations shows that everything are the same.
When I use
pulumi update --diff --json > diff-file.json
I can see the newState and oldState for resource is exactly the same but pulumi still want to update it with error like this:
... 1 error occurred:
* Error, failed to update instance settings for : googleapi: Error 412: Condition does not match., staleData
Could anyone advice me how I could track it down?great-queen-39697
04/13/2022, 3:34 PMTF_LOG=TRACE pulumi up -v=11 --logtostderr 2>&1 | tee -a pulumi_log.txt
The environment variable asks the classic provider to bubble up data. If you were running other providers that don't use the Terraform bridge, there's another flag to use on the troubleshooting page.
Regarding your specific question, I think you're running into this one: https://github.com/hashicorp/terraform-provider-google/issues/7200 (the Pulumi classic GCP provider is built on the same bridge as the Terraform one, so the errors are often very similar). See if the fix suggested there helps 🙂helpful-shoe-41967
04/13/2022, 6:28 PMpulumi refresh
after that next pulumi update started work for me