Best Terraform Alternatives

The top-ranked Terraform alternative is OpenTofu (Open Source). The best free option is Ansible (open source).

Terraform is HashiCorp's infrastructure-as-code tool for provisioning cloud resources declaratively. Since HashiCorp's license change to the BUSL, many teams seek alternatives for open-source licensing, different languages, or tighter cloud integration.

Want your software in front of people looking for Terraform alternatives? Sponsor this spot

1.OpenTofu

Open Source · Windows, macOS, Linux

A community-driven open-source fork of Terraform maintained under the Linux Foundation.

2.Pulumi

Freemium · Windows, macOS, Linux

Infrastructure as code using general-purpose languages like Python, TypeScript, and Go.

3.Ansible

Open Source · macOS, Linux, Windows

Agentless automation tool for configuration management and provisioning using YAML playbooks.

4.AWS CloudFormation

Free · Web

AWS-native infrastructure-as-code service for modeling and provisioning AWS resources.

5.AWS CDK

Open Source · Windows, macOS, Linux

Define AWS cloud infrastructure using familiar programming languages that synthesize to CloudFormation.

6.Crossplane

Open Source · Linux, Web

Open-source Kubernetes-based control plane for provisioning cloud infrastructure via APIs.

7.Google Cloud Deployment Manager

Free · Web

Google Cloud's native infrastructure deployment service using declarative templates.

8.Azure Resource Manager (Bicep)

Free · Windows, macOS, Linux

Azure-native declarative language and service for deploying Azure resources.

9.Chef

Paid · Windows, macOS, Linux

Configuration management platform for automating infrastructure using Ruby-based recipes.

10.Puppet

Freemium · Windows, macOS, Linux

Declarative configuration management tool for automating server infrastructure at scale.

11.SaltStack

Open Source · Windows, macOS, Linux

Event-driven automation and configuration management framework for infrastructure.

12.Terragrunt

Open Source · Windows, macOS, Linux

Thin wrapper for Terraform/OpenTofu that adds DRY configuration and remote state management.

Terraform alternatives: FAQ

What is the best alternative to Terraform?

OpenTofu is ranked first on this list (Open Source). The ranking combines our base score with readers' votes, so it can change.

What is the best free alternative to Terraform?

The highest-ranked free or open-source options here are OpenTofu, Ansible and AWS CloudFormation.

Which Terraform alternatives work on Mac?

OpenTofu, Pulumi, Ansible and AWS CDK run on macOS.

Which Terraform alternatives work on Linux?

OpenTofu, Pulumi, Ansible and AWS CDK run on Linux.

Know a Terraform alternative we missed? Suggest it — we review submissions before they go live.

More alternatives