What features stops multiple users from operating on the Terraform state at the same time?
What features stops multiple users from operating on the Terraform state at the same time?
State locking in Terraform is the feature that prevents multiple users or processes from simultaneously operating on the Terraform state file. This mechanism ensures that only one operation can modify the state at a time, thereby avoiding conflicts and ensuring the integrity of the state file.
C. State locking
C. State locking State locking in Terraform prevents multiple users or processes from simultaneously modifying the Terraform state file (terraform.tfstate). It ensures that only one operation (e.g., terraform apply or terraform destroy) can modify the state at a time, preventing conflicts in collaborative or automated environments.