Terraform vs OpenTofu vs Pulumi: infrastructure as code in 2026

Terraform, OpenTofu and Pulumi compared on licensing, language, features and state, after HashiCorp's licence change and IBM's acquisition.

INDI TECHNOLOGY4 min read

Infrastructure as code (IaC) is non-negotiable for any serious cloud setup: it makes environments reproducible, reviewable and auditable. For years Terraform was the obvious tool. Then, in August 2023, HashiCorp moved Terraform from the open-source MPL 2.0 licence to the Business Source License (BSL 1.1), and the community forked the last open version as OpenTofu under the Linux Foundation. IBM completed its acquisition of HashiCorp in February 2025. Meanwhile Pulumi continued offering IaC in general-purpose programming languages.

At a glance

Terraform OpenTofu Pulumi
Licence BSL 1.1 (source available) MPL 2.0 (open source) Apache 2.0 (engine); paid cloud service
Owner / governance HashiCorp (IBM) Linux Foundation, multi-vendor Pulumi Corporation
Language HCL HCL (Terraform-compatible) TypeScript, Python, Go, C#, Java, YAML
Providers Largest registry Uses the same providers Own providers plus bridged Terraform providers
State Local, remote backends, HCP Terraform Same backends; built-in state encryption Pulumi Cloud or self-managed backends
Testing terraform test tofu test Unit tests in your language's test framework
Managed platform HCP Terraform (Terraform Cloud), Terraform Enterprise Spacelift, env0, Scalr, Harness and others Pulumi Cloud
Migration from Terraform — Mostly drop-in for 1.5-era configs Converter tools; rewrite into code

Terraform

Terraform remains the most widely used IaC tool, with the biggest provider ecosystem, the most modules and examples, and HCP Terraform for teams that want a managed workflow. For most companies that simply use Terraform to manage their own infrastructure, the BSL licence doesn't restrict them. It mainly restricts offering a competing hosted Terraform service.

Choose it if you're an existing Terraform shop that's happy with it, you want HCP Terraform or Terraform Enterprise, or your organisation prefers the commercially supported original.

OpenTofu

OpenTofu started as Terraform 1.5 and has stayed compatible with existing configurations and providers, while adding features of its own, notably client-side state encryption, early variable evaluation in more places and provider iteration. It's governed by the Linux Foundation with support from several IaC platform companies.

Choose it if you want an open-source licence and vendor-neutral governance, or you use a third-party IaC platform. Migration from Terraform is usually a matter of swapping the binary and testing, though the two have diverged since 2023, so check any newer Terraform-only features you rely on.

Pulumi

Pulumi lets you write infrastructure in TypeScript, Python, Go, C# or Java. You get loops, functions, classes, packages, IDE support and normal unit tests. That's powerful for complex infrastructure and for teams of application developers who'd rather not learn HCL. Pulumi Cloud manages state, secrets and deployments, and policies can be written in code.

Choose it if your infrastructure has a lot of logic (multi-tenant environments created per customer, complex conditional setups), or your team strongly prefers general-purpose languages.

Watch out for: too much cleverness. Infrastructure written as deeply abstracted code can be harder to review than plain HCL. Keep it simple and readable.

What matters more than the tool

Whatever you choose, these practices decide whether IaC works:

  • Remote state with locking and encryption, in a separate, restricted account
  • Small, composable modules rather than one huge configuration
  • Plans reviewed in pull requests, applied by CI/CD, never from laptops
  • Policy checks (OPA/Conftest, Checkov, tfsec/Trivy, Sentinel, Pulumi policies) for security rules such as no public buckets or encryption required
  • Drift detection to catch manual console changes
  • Separate environments (dev, staging, prod) with the same modules

These also produce the change-management evidence auditors ask for in SOC 2 and ISO 27001.

Choose Terraform if…

  • you already use it and it works
  • you want HashiCorp's managed platform and commercial support
  • you want the largest ecosystem with no migration effort

Choose OpenTofu if…

  • you want a truly open-source licence and neutral governance
  • you're starting fresh with HCL or using a third-party IaC platform
  • built-in state encryption is valuable to you

Choose Pulumi if…

  • your team prefers TypeScript, Python or Go
  • infrastructure needs real programming logic
  • you want to unit-test infrastructure in your normal language

Recommendation by team

Team Pick
Startup with a small DevOps capability OpenTofu or Terraform (HCL is easy to review)
Existing Terraform estate Stay on Terraform, or move to OpenTofu if licence or cost matters
Platform team building per-customer environments Pulumi, or OpenTofu with good modules
Enterprise wanting commercial support Terraform Enterprise, or OpenTofu via a supported platform

Summary

OpenTofu and Terraform are both safe HCL choices: pick OpenTofu for open-source governance, Terraform for HashiCorp's platform and support. Choose Pulumi when your team and infrastructure benefit from real programming languages. The practices around the tool matter more than the tool itself.

We set up infrastructure as code, CI/CD for infrastructure and policy checks through our cloud and infrastructure work, and migrate between tools when it's worth it. Talk to us.

Related services

Related industries

Any idea in mind? Let's make it real.

Tell us what you're building. You'll hear back from an engineer, not a sales team, usually within one working day.

Book a 30-min call