Title here
Summary here
You are attempting to run terraform apply for a critical production update, but it fails immediately with an error: Error acquiring the state lock. The message says the lock was created by your colleague “Bob” 3 hours ago. Bob is currently on a flight and unreachable.
What does this error mean, and what are the safe (and unsafe) steps to resolve this to proceed with your deployment?
terraform force-unlock <LOCK_ID>.force-unlock is dangerous. If Bob’s process is still writing (e.g., a hung network connection), forcing unlock could corrupt the state. Always verify the process is truly dead first.