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: The first three alternatives to Terraform in our infrastructure as code tool ranking are OpenTofu, Pulumi and Spacelift. Places 1 to 3 go to challengers, vendors outside the best-known brands in a category, wherever the category has them; the established names follow from place 4 in their ranked order. Choose OpenTofu if you want to keep your Terraform code and need a licence that stays open source. All 11 alternatives below are ranked products from Best Infrastructure as Code Tools in 2026, and each says where it differs from Terraform.

Vendors can pay for visibility on this site; it never changes what we say about a product. 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

Challengers first, then established names
AlternativeHeadquartersFree optionPricing Key differenceSwitch ifOur rank
OpenTofuNot stated by the vendorNo free tierOpen source under MPL 2.0; no vendor price listLinux Foundation fork of Terraform under the MPL 2.0 licenceyou want to keep your Terraform code and need a licence that stays open source#1
PulumiUnited StatesYesFree plan for one user; Essentials, Pro and Enterprise tiers publishedGeneral-purpose languages for infrastructure, with published cloud tiersyour engineers want real programming languages and a published price ladder#2
SpaceliftNot stated by the vendorYesFree plan for two users; Starter Plus published, higher tiers quotedRuns OpenTofu, Terraform, Pulumi and Kubernetes code from one pipelineyou keep your code but want policy, drift detection and private workers around it#3
env0United StatesYesFree plan up to 250 runs a month; paid plans quoted per organisationEnvironment-based IaC automation with a usage-capped free tieryou want self-service environments and a free tier before talking to sales#4
TerragruntUnited StatesNo free tierMIT-licensed tool; optional Gruntwork pipeline free up to 25 unitsOpen-source wrapper that orchestrates OpenTofu and Terraform stacksyour problem is repeated configuration across many environments, not Terraform itself#7
AnsibleUnited StatesNo free tierOpen source core; Automation Platform quoted, Standard or Premium supportAgentless YAML automation, with Red Hat support sold per quotemost of your work is configuring servers and you want no agent and no state file#6
AWS CloudFormationUnited StatesNo free tierPay as you go with no minimum fees; registry extensions billed per handler operationTemplate-based provisioning service for AWS and third-party resources via registryyou run only on AWS and want no extra tool, state backend or vendor#12
CrossplaneNot stated by the vendorNo free tierOpen source under Apache 2.0; commercial platform from UpboundKubernetes-based control planes for cloud resources, a CNCF graduated projectyour platform team already runs Kubernetes and wants one API for everything#8
PuppetUnited StatesYesCore free below 25 nodes; commercial and Enterprise tiers quotedAgent-based configuration management from Perforce with a small-fleet free tieryou run a fleet of long-lived servers and need drift correction on them#10
ChefUnited StatesNo free tierPer node per year, Business and Enterprise published; Enterprise Plus quotedPer-node configuration automation from Progress, in SaaS or on-premyou manage servers and want a per-node price you can read on the page#11
SaltStackNot stated by the vendorNo free tierOpen source; the project site shows no vendor price listEvent-driven configuration and remote execution framework from the Salt Projectyou need fast remote execution across thousands of machines#9
03

What each one does differently

OpenTofu

Not stated by the vendor · Open source under MPL 2.0; no vendor price list

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.

OpenTofu, #1 of 12 in our infrastructure as code tool ranking →

Pulumi

United States · Free plan for one user; Essentials, Pro and Enterprise tiers 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.

Pulumi, #2 of 12 in our infrastructure as code tool ranking →

Spacelift

Not stated by the vendor · Free plan for two users; Starter Plus published, higher tiers quoted

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.

Spacelift, #3 of 12 in our infrastructure as code tool ranking →

env0

United States · Free plan up to 250 runs a month; paid plans quoted per organisation

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.

env0, #4 of 12 in our infrastructure as code tool ranking →

Terragrunt

United States · MIT-licensed tool; optional Gruntwork pipeline free up to 25 units

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.

Terragrunt, #7 of 12 in our infrastructure as code tool ranking →

Ansible

United States · Open source core; Automation Platform quoted, Standard or Premium support

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.

Ansible, #6 of 12 in our infrastructure as code tool ranking →

AWS CloudFormation

United States · Pay as you go with no minimum fees; registry extensions billed per handler operation

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, #12 of 12 in our infrastructure as code tool ranking →

Crossplane

Not stated by the vendor · Open source under Apache 2.0; commercial platform from Upbound

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, #8 of 12 in our infrastructure as code tool ranking →

Puppet

United States · Core free below 25 nodes; commercial and Enterprise tiers quoted

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.

Puppet, #10 of 12 in our infrastructure as code tool ranking →

Chef

United States · Per node per year, Business and Enterprise published; Enterprise Plus quoted

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, #11 of 12 in our infrastructure as code tool ranking →

SaltStack

Not stated by the vendor · Open source; the project site shows no vendor price list

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.

SaltStack, #9 of 12 in our infrastructure as code tool ranking →

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 19 October 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.

Written, edited and fact-checked by Sebastiaan Smits. Last reviewed 19 October 2026. How we review.

—

Alternatives to other products