Terraform alternatives: 11 infrastructure as code tools compared

People look for a Terraform alternative because of the licence change, the per-resource pricing of HCP Terraform, or because they would rather write infrastructure in a general-purpose language or configure servers instead. They move to the open-source fork OpenTofu, to Pulumi, to a pipeline platform that runs the same code, or to a cloud-native or configuration tool.

Short answer: OpenTofu, Pulumi and Spacelift head the list of Terraform alternatives drawn from our infrastructure as code tool ranking. Where a category has smaller vendors worth recommending, they occupy the first three places and the big brands come below them. OpenTofu is the one to try if you want to keep your Terraform code and need a licence that stays open source. Each of the 11 alternatives sits in Best Infrastructure as Code Tools in 2026 and is described against Terraform.

Vendors can pay for more visibility on this website, for example a higher place in a ranking or more room on a page. Commercial relationships can also affect which products we feature and how prominently. Every vendor link is marked the same, whatever the arrangement behind it. How that works.

Terraform

#5 of 12 in our infrastructure as code tool ranking

  • Pricing: HCP Terraform billed per managed resource, rates published; self-hosted Enterprise quoted
  • Established in: United States
  • Built for: Organisations already standardised on Terraform modules and HashiCorp tooling
  • Not for: Teams that need an OSI open-source licence or a vendor-neutral owner
01

Why buyers look past Terraform

  1. 01

    The licence is no longer open source

    Terraform 1.6.0 and later is under the Business Source License, with IBM as licensor. Production use is allowed, but offering it to third parties on a hosted or embedded basis to compete with IBM's paid versions is not. Vendors and consultants who build products around it carry that ambiguity, which is the reason OpenTofu exists.

  2. 02

    HCP Terraform bills per managed resource

    The hosted service meters managed resources by the hour. Essentials starts at 0.10 USD per resource a month, Standard at 0.47 and Premium at 0.99, and free organisations stop at 500 managed resources. A bill therefore grows with every resource you create, and policy enforcement and cost estimation only appear from Standard.

  3. 03

    Self-hosting and EU hosting are sales conversations

    Terraform Enterprise, the self-managed edition, has custom pricing, and HCP Terraform Europe is quoted too. A team that needs state and runs inside its own network, or wants a published price for that, has to talk to sales or move to a tool that publishes more.

02

11 alternatives at a glance

Ranked: challengers ahead of household names
AlternativeHeadquartersFree optionPricing model Switch ifOur rank
OpenTofuNot stated by the vendorNo free tierSee profileyou want to keep your Terraform code and need a licence that stays open source#1
PulumiUnited StatesYesPublishedyour engineers want real programming languages and a published price ladder#2
SpaceliftNot stated by the vendorYesPublishedyou keep your code but want policy, drift detection and private workers around it#3
env0United StatesYesPublishedyou want self-service environments and a free tier before talking to sales#4
TerragruntUnited StatesNo free tierPublishedyour problem is repeated configuration across many environments, not Terraform itself#7
AnsibleUnited StatesNo free tierOn requestmost of your work is configuring servers and you want no agent and no state file#6
AWS CloudFormationUnited StatesNo free tierSee profileyou run only on AWS and want no extra tool, state backend or vendor#12
CrossplaneNot stated by the vendorNo free tierSee profileyour platform team already runs Kubernetes and wants one API for everything#8
PuppetUnited StatesYesPublishedyou run a fleet of long-lived servers and need drift correction on them#10
ChefUnited StatesNo free tierPublishedyou manage servers and want a per-node price you can read on the page#11
SaltStackNot stated by the vendorNo free tierSee profileyou need fast remote execution across thousands of machines#9
03

What each one does differently

OpenTofu

Not stated by the vendor · See profile

A fork of Terraform under the Linux Foundation and the MPL 2.0 licence, described as a drop-in replacement. It reads existing state files up to those from Terraform 1.5.x. It is only the CLI and registry: there is no hosted service, no pricing and no support contract from the project.

Switch from Terraform if you want to keep your Terraform code and need a licence that stays open source.

Why OpenTofu is #1 among 12 infrastructure as code tool products →

Pulumi

United States · Published

Infrastructure written in Node.js, Python, Go, .NET, Java or YAML instead of HCL. The core is Apache 2.0, and the cloud has a Free plan for one user, Essentials at 40 USD a month for 500 managed resources and Pro at 400 USD for 2,000. SSO and drift detection start at Pro.

Switch from Terraform if your engineers want real programming languages and a published price ladder.

See the full Pulumi entry, ranked 2 of 12 among infrastructure as code tool products →

Spacelift

Not stated by the vendor · Published

Not a language but a pipeline that runs OpenTofu, Terraform, Terragrunt, Pulumi and Kubernetes code. It has a free plan with no time limit, then Starter Plus at 20,000 USD, with Business and above quoted. Self-hosted and air-gapped options sit on the top tier.

Switch from Terraform if you keep your code but want policy, drift detection and private workers around it.

More on Spacelift: ranked 3 of 12 in infrastructure as code tool →

env0

United States · Published

A management platform, now trading as env zero, for Terraform and OpenTofu environments. The free tier gives 250 runs a month, 30 active environments and one self-hosted runner. Paid plans are custom priced per successful apply or environment, so the bill follows activity rather than resources.

Switch from Terraform if you want self-service environments and a free tier before talking to sales.

Where env0 stands: place 4 of 12 in the infrastructure as code tool ranking →

Terragrunt

United States · Published

A wrapper rather than a replacement: it orchestrates OpenTofu and Terraform stacks and is MIT licensed. Gruntwork offers a CI pipeline free for up to 25 infrastructure units. You still run Terraform or OpenTofu underneath, so it does not remove the licence question.

Switch from Terraform if your problem is repeated configuration across many environments, not Terraform itself.

Why Terragrunt is #7 among 12 infrastructure as code tool products →

Ansible

United States · On request

Agentless automation in YAML playbooks over SSH, GPL v3 for the core. It configures machines and can call cloud modules, but it does not track a state file the way Terraform does. Automation Platform is sold by Red Hat as a quote, with Standard or Premium support.

Switch from Terraform if most of your work is configuring servers and you want no agent and no state file.

Full verdict on Ansible, which sits at number 6 of 12 for infrastructure as code tool →

AWS CloudFormation

United States · See profile

AWS's own template service for AWS resources. You pay for what you use with no minimum fees, and only registry extensions are billed per handler operation. A template holds at most 500 resources, so large estates use nested stacks. It manages AWS and nothing else natively.

Switch from Terraform if you run only on AWS and want no extra tool, state backend or vendor.

AWS CloudFormation review, listed at 12 of 12 infrastructure as code tool products →

Crossplane

Not stated by the vendor · See profile

A Kubernetes-based control plane, an open-source CNCF project under Apache 2.0, where cloud resources become Kubernetes objects through compositions and providers. It needs a cluster and Kubernetes skills. The project site shows no pricing, and no country is stated.

Switch from Terraform if your platform team already runs Kubernetes and wants one API for everything.

Crossplane comes 8 of 12 when infrastructure as code tool products are ranked here →

Puppet

United States · Published

Agent-based configuration management, free for fewer than 25 nodes with the Core Developer plan. Commercial and Enterprise tiers are custom priced, and continuous CIS enforcement is exclusive to the commercial version. It manages configuration of machines, not cloud provisioning.

Switch from Terraform if you run a fleet of long-lived servers and need drift correction on them.

#10 out of 12 infrastructure as code tool products: read the Puppet review →

Chef

United States · Published

Per-node configuration automation, published at 59 USD per node a year for Business and 189 USD for Enterprise, with Enterprise Plus quoted. It is offered as SaaS or self-managed. Counting by node suits server fleets but does not map to cloud resources.

Switch from Terraform if you manage servers and want a per-node price you can read on the page.

Chef review, listed at 11 of 12 infrastructure as code tool products →

SaltStack

Not stated by the vendor · See profile

An open-source (Apache 2.0) framework for remote execution and configuration with an event system, a master and minions. The project site shows no pricing, plans or support tiers, and its footer names Broadcom. It is a configuration tool, so it replaces Terraform only at the edges.

Switch from Terraform if you need fast remote execution across thousands of machines.

Open the SaltStack profile, 9th of 12 in the infrastructure as code tool guide →

04

When Terraform is still the right choice

Terraform remains the sensible choice when your code, modules and state already run on it and nobody sells a product built on top of it. Internal use is not competitive under the licence terms, HCP Terraform's Free plan covers 500 managed resources, and the registry and documentation are the widest of the group. The cost of staying is the per-resource meter and a licence that can change again.

05

What moving off Terraform involves

  1. 01

    OpenTofu is the low-effort move

    OpenTofu works with state files created up to Terraform 1.5.x, so teams on 1.5 or earlier can switch the binary. If you already use Terraform 1.6 or later, test a plan on a copy of your state first, because the project states compatibility only up to 1.5.x.

  2. 02

    Rewriting to Pulumi is a project

    Pulumi uses programming languages instead of HCL, so your modules have to be rewritten, not converted by a flag. Budget for the rewrite per stack, and keep Terraform running for the stacks you have not moved.

  3. 03

    Decide where the state and runs live

    Moving to Spacelift, env zero or Terragrunt keeps your code but changes who runs it and where the state sits. Check the plan limits (runs, environments, private workers) against your actual number of stacks before you commit.

06

Questions about replacing Terraform

6 answers
Is Terraform still open source?

No. Terraform 1.6.0 and later is under the Business Source License with IBM as licensor. OpenTofu is the MPL 2.0 fork under the Linux Foundation.

What is the cheapest Terraform alternative?

OpenTofu and Terragrunt are free open-source tools, and Pulumi, Spacelift and env zero have free plans with caps. Pulumi Essentials is 40 USD a month for 500 managed resources.

Can I use my Terraform code with OpenTofu?

OpenTofu calls itself a drop-in replacement and reads state files up to those created with Terraform 1.5.x. Test newer state files on a copy first.

Is there a Terraform alternative that uses normal programming languages?

Pulumi supports Node.js, Python, Go, .NET, Java and YAML. Its core is Apache 2.0.

Do I need a replacement if I only use AWS?

Not necessarily. CloudFormation has no minimum fee and is billed only for registry extensions per handler operation, but a template is limited to 500 resources and it covers AWS only.

Are Ansible and Puppet replacements for Terraform?

Only in part. They configure machines; Terraform provisions resources and tracks them in a state file. Many teams use one of each.

—

Sources

Checked 19 October 2026
—

Who wrote this

Last reviewed 6 November 2026

Sebastiaan Smits

Founder · Amsterdam, Netherlands

Founder of The Knowledge Engineers and of 2 Steps Ahead, an AI search visibility agency. Editorially responsible for every page on this site; research and drafting are AI-assisted.

Sebastiaan Smits wrote and checked this page, most recently on 6 November 2026. See how we review.

—

Terraform head to head

—

Alternatives to other products