Related Content

Terraform Force-Unlock: How to Safely Unlock a Locked State File

Terraform Force-Unlock: How to Safely Unlock a Locked State File

Terraform force-unlock releases a stuck state lock so deployments can proceed. This guide covers how the command works, where to find the lock ID on every major backend, and when force-unlock is the wrong tool for the job.
How to Migrate Terraform State Between Backends

How to Migrate Terraform State Between Backends

Migrating Terraform state doesn't have to be scary. This guide covers the core methods — -migrate-state vs. -reconfigure, manual state pull/push, and Terragrunt's backend commands — with worked examples for S3, Azure, and reverse migrations. It also covers the env zero-specific paths: the Migration Wizard for teams leaving Terraform Cloud or Enterprise, the manual workspace-by-workspace method, and how to move state in or out of env zero's own remote backend.
Using Open Policy Agent (OPA) with Terraform: Tutorial and Examples [2026]

Using Open Policy Agent (OPA) with Terraform: Tutorial and Examples [2026]

Open Policy Agent (OPA) with Terraform: enforce security, tagging, and cost policies on every plan. Covers Rego v1 syntax, Conftest, GitHub Actions CI/CD integration, and env zero.