Terraform Force-Unlock Command

Unlocking TF State File

Jack Roper
ITNEXT
Published in
5 min readApr 24, 2024

--

Ever found your Terraform state file is ‘already locked’ when trying to perform a Terraform operation? In this article, we will look at the reasons why this might happen, and how to resolve this problem using the Terraform force-unlock command. We will explain what the command does, how to use it, the available options, and when you should use it.

Photo by FlyD on Unsplash

--

--

A blog about DevOps & Cloud Tech. Specializing in Terraform, Kubernetes, Azure & Azure DevOps! ☁️