Skip to content
Go back

The Terraform lock nobody owns

Investigate a remote state lock, prove that no run is active, and remove only the orphaned lock.

The incident you will investigate

This lab runs in a simulated terminal in your browser. No account, cloud resources, or live cluster is required. Inspect the evidence, diagnose the cause, apply a fix, and verify the result.

environment
production infrastructure
workload
terraform/network-prod
status
changes blocked
symptom
remote state lock remains after a cancelled CI job

What you will practice

The production network pipeline cannot plan because the remote state is locked by a CI job that no longer exists.

Capture the lock identity. Do not force-unlock until you prove that its owner is gone.

Try: terraform plan

Related labs