Terraform or OpenTofu? What to consider before you choose
Licensing, compatibility, provider ecosystem, and migration strategy: an objective comparison for infrastructure teams.
Infrastructure as Code$ tofu plan -out=tfplan▍Since Terraform’s license changed to the BSL in 2023, the community has created OpenTofu, a fork maintained under the Linux Foundation and licensed under MPL 2.0. For many teams, the question is no longer “how do I use Terraform?” but “which of the two should I use?”.
Compatibility
OpenTofu started out compatible with HCL syntax, the state format, and existing providers. In most projects, migrating is just a matter of swapping the binary:
tofu init
tofu plan
Over time, the two projects have diverged in features — so it’s worth reviewing the release notes before relying on features exclusive to either one.
Decision criteria
| Criterion | Terraform | OpenTofu |
|---|---|---|
| License | BSL 1.1 | MPL 2.0 |
| Governance | HashiCorp | Linux Foundation |
| Managed platform | HCP Terraform | Several (Spacelift, env0, Scalr…) |
| Native state encryption | No | Yes |
When it makes sense to migrate
- Your company offers products that embed or compete with IaC tools (in which case the BSL may be a legal issue).
- You prefer open, neutral governance.
- You want features such as client-side state encryption.
When to stay put
If your team relies heavily on HCP Terraform, with Sentinel policies and integrated workspaces, the cost of migrating may not pay off right now.
Tip: whichever you choose, pin the tool and provider versions (required_version and required_providers) to avoid surprises.