Great Stack to Doesn't Work Bonus: 10 Terraform 'I Wish I Knew This Earlier' Moments (opens in new tab)
Great Stack to Doesn't Work — Bonus 10 Terraform "I Wish I Knew This Earlier" Moments Hard-won lessons from hundreds of terraform apply runs. 1. State locking saves careers. Two engineers run terraform apply simultaneously. Both read the same state. Both make changes. One overwrites the other. Resources are orphaned. State is corrupted. Use a remote backend with locking. For AWS: terraform { backend "s3" { bucket = "my-terraform-state" key = "prod/terraform.tfstate" region = "eu-west-1" dynam...
Read the original article