Interview Prep/CI/CD/Deployment, Kubernetes and GitOps Failures

`terraform apply` in CI: `Error acquiring the state lock`.

AdvancedTroubleshootingDeployment, Kubernetes and GitOps Failures
Answer

Likely causes → A previous run crashed or is still running; two pipelines race.

Diagnose → Read the lock ID and Who in the error; check running pipelines.

Fix → After confirming nothing runs, terraform force-unlock <ID>.

Prevent → Serialize with concurrency groups and avoid cancelling apply.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment, Kubernetes and GitOps Failures