Terraform State in Production: Backends, Locking, Drift, Import, and Recovery
A complete operational model for tfstate files: what they contain, how remote backends coordinate teams, and how to migrate or recover state without corrupting it.
tag
5 posts
A complete operational model for tfstate files: what they contain, how remote backends coordinate teams, and how to migrate or recover state without corrupting it.
Resolve Terraform provider constraint conflicts using the requirement tree, required_providers, committed lock selections, checksums, and tested upgrades.
HashiCorp's 2023 Terraform license change triggered the OpenTF fork, soon renamed OpenTofu and placed under Linux Foundation stewardship.
terraform plan or apply hangs, then fails with 'Error acquiring the state lock.' Here's how to confirm it's genuinely stale before force-unlocking it.
Why Terraform's state file is the actual source of truth behind every plan and apply, and how drift, locking, and idempotency all follow from that design.