State locking coordinates infrastructure deployments that share remote state. When one developer deploys, Terraform locks the state file; another deployment must wait, preventing competing updates from overwriting state or corrupting the environment. section 9.7.3
Two developers, one deployment
Developer A starts a deployment and Terraform locks the remote state file. If Developer B deploys at the same time, Terraform stops B until the update in progress finishes. section 9.7.3




















