Skip to main content

How Do You Prevent Concurrent Terraform Applies?

Question

Two engineers are working on the same Terraform infrastructure. One starts a terraform apply and the other attempts to run terraform apply against the same environment.

How would you prevent both Terraform operations from making changes at the same time?