Contents
Roadmap info from [roadmap website](https://roadmap.sh/terraform/state locking@GseYuG9wT8H9R_enxWzuQ)
Terraform state locking is a mechanism that prevents concurrent modifications to the same state file, avoiding potential conflicts and data corruption. When enabled, Terraform acquires a lock before performing operations that could modify the state, such as apply or destroy. If the lock is unavailable, Terraform waits or fails, depending on configuration. State locking is automatically supported by many backend types, including S3 with DynamoDB, Azure Blob Storage, and Terraform Cloud. Itβs crucial for team environments where multiple users or automation processes might attempt simultaneous changes. While essential for data integrity, itβs important to implement proper lock management to prevent stuck locks from blocking operations.