10 Terraform Scenarios Every DevOps Engineer Must Know. 27 Terraform is powerful — but it comes with hidden pitfalls that can break your infrastructure if you’re not careful. 1. What if your Terraform state file is deleted? Disaster mode activated! Terraform forgets everything it deployed and tries to recreate all resources from scratch. This can lead to conflicts and duplicate infrastructure. Always back up your state! 2. What if two engineers run terraform apply at the same time? State file clash! Without proper locking, Terraform risks state corruption, leading to unpredictable infrastructure drift. Use remote state with locking! 3. What if a Terraform apply fails halfway? Partially deployed chaos! Successfully created resources stay live, but failed ones remain in a tainted state. Terraform will retry the failed ones on the next apply. Know how to handle tainted resources! 4. What if AWS API rate limits are hit during deployment? Throttling nightmare! Terraform retries a few ...