-
Notifications
You must be signed in to change notification settings - Fork 10.3k
terraform force-unlock without having to specify lock ID #38340
Copy link
Copy link
Open
Labels
Description
Terraform Version
Terraform v1.9.5
on darwin_arm64
+ provider registry.terraform.io/hashicorp/google v7.19.0
+ provider registry.terraform.io/hashicorp/google-beta v7.19.0Use Cases
I want to just run a command to unlock the current state without having to copy/paste the lock ID terraform spits out after running a plan.
Attempted Solutions
There isn't even a way to programmatically get the lock ID to pass it to terraform force-unlock -force which is annoying.
Proposal
This is a convenience feature. Its annoying to have to copy the lock id and pass it to force-unlock. there should be a toggle to just unlock the current state without asking for a lock ID.
This could be a separate toggle or just add this to the force switch.
Terraform knows what the lock ID is so why can't terraform force-unlock -force just unlock the current state for me?
References
No response
Reactions are currently unavailable