I’m able to run init, validate, etc, but when I run plan or apply, Terraform is hanging on "requesting state lock for workspace. This is on a new windows 10 laptop using local state creating resources in Azure. It doesn’t matter if I use the default workspace or create a new workspace. If I add the -lock=“false” parameter, it works just fine creating the resources no problem. Even stripping everything out to just the barest of minimums in my main.tf, it still hangs on request state lock.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
State locking - Rigth way to use it | 1 | 3044 | May 21, 2021 | |
Terraform cloud - Error acquiring state lock | 2 | 4280 | September 10, 2019 | |
Tfstate file remains locked after init/plan/apply/etc | 0 | 388 | May 21, 2021 | |
Failed to save state during terraform apply -lock=false | 6 | 4056 | February 3, 2023 | |
Azure and TF v0.13: Error Locking State | 1 | 1488 | October 7, 2020 |