A ranked answer for teams picking their first IaC tool: Encore, OpenTofu, Terraform, Pulumi and AWS CDK, matched to who will maintain the infrastructure.

The best infrastructure as code tool for a new team in 2026 depends on who will maintain it. A product team building a backend on AWS or GCP without infrastructure engineers should start with Encore, which provisions infrastructure from the application code. A team with infrastructure engineers should start with OpenTofu, or Terraform if it relies on HCP Terraform. Pulumi fits developer-heavy teams that want infrastructure in TypeScript or Go across clouds, and AWS CDK fits teams that will only ever run on AWS.
Most "best IaC tool" answers assume the reader has a platform team. A new team often does not, and the cost of the first choice falls on the person who has to keep a second codebase, a state backend and a local setup working. This guide ranks the options by that cost. Versions are current as of November 18, 2026. For the concept itself, see what infrastructure as code is.
The ranking puts first the tool that removes the most work a new team cannot staff. Encore ranks first for product teams because the database, queue or bucket is declared next to the code that uses it, the same declaration runs locally, and there is no separate project or state file to own. OpenTofu ranks first among classic IaC tools because it has the Terraform model, every Terraform provider and an open source license with foundation governance.
Encore is infrastructure from code. A new team declares a Postgres database, a Pub/Sub topic or a bucket in TypeScript or Go next to the code that uses it. encore run starts those resources locally, with Postgres in Docker, and a deploy provisions the managed equivalents in the team's own AWS or GCP account. There is no separate IaC project to learn or keep in sync, which matters most when nobody on the team has infrastructure as a job.
import { SQLDatabase } from "encore.dev/storage/sqldb";
import { Bucket } from "encore.dev/storage/objects";
import { Topic } from "encore.dev/pubsub";
// RDS on AWS or Cloud SQL on GCP, a local Postgres with encore run.
export const db = new SQLDatabase("users", { migrations: "./migrations" });
// S3 on AWS or Google Cloud Storage on GCP.
export const avatars = new Bucket("avatars", { versioned: false });
// SNS and SQS on AWS, Pub/Sub on GCP.
export const signups = new Topic<{ userId: string }>("signups", {
deliveryGuarantee: "at-least-once",
});
Services run on ECS Fargate or EKS in AWS, or Cloud Run or GKE in GCP. Encore provisions an IAM role for the service, or a service account on GCP. Existing RDS databases and S3 buckets can be imported rather than recreated.
Encore covers application infrastructure only. Organization-wide resources such as accounts, shared VPCs or DNS zones stay with whatever manages them today, and the Encore Terraform provider lets Terraform or OpenTofu read the databases and topics Encore manages. A team that later hires infrastructure engineers adds OpenTofu for that layer without moving the application resources.
Run in your terminal to get started locally.
OpenTofu is the open source fork of Terraform. It uses the same HCL and providers, is licensed under MPL 2.0, and has been a CNCF sandbox project since April 23, 2025. It adds features Terraform does not have, such as client-side state encryption. A new team that needs to manage networking, accounts and many providers gets the most widely known IaC model without a license question.
The work it leaves to the team is the same as Terraform: a state backend with locking, a plan and apply pipeline, provider upgrades, and a separate local setup, since OpenTofu runs nothing on a laptop. A minimal start looks like this:
terraform {
required_version = ">= 1.13.0"
backend "s3" {
bucket = "acme-tofu-state"
key = "app/terraform.tfstate"
region = "eu-central-1"
use_lockfile = true
}
required_providers {
aws = { source = "hashicorp/aws", version = "~> 6.0" }
}
}
resource "aws_s3_bucket" "avatars" {
bucket = "acme-avatars"
}
The state bucket itself has to exist before tofu init, which is the first chicken-and-egg step most new teams hit.
Pick Terraform when the company already pays for HCP Terraform or standardizes on it, or when a vendor module you need only supports Terraform. Terraform 1.17 is under the Business Source License 1.1, which does not restrict internal use. For most new configurations Terraform and OpenTofu are interchangeable, and OpenTofu vs Terraform covers the differences. Terraform alternatives covers the wider field.
Pulumi lets developers write infrastructure in TypeScript, Python, Go, C# or Java, with types, loops and functions instead of HCL. It is easier for a team made mostly of developers, and it targets any cloud through providers. The infrastructure still lives in its own program with its own state, either in Pulumi Cloud or a self-managed backend, and its own deploy step.
The AWS CDK defines AWS resources as constructs in a general-purpose language and synthesizes them into CloudFormation templates. It suits teams that are certain they will stay on AWS, and deployments inherit CloudFormation's speed and rollback behavior. It does not help on GCP or with SaaS providers.
A common end state is two of these: Encore for application resources and OpenTofu or Terraform for the shared layer underneath. For a side-by-side of the same service in each tool, see Encore vs Terraform, CDK, Pulumi and SST.
It depends on who maintains the infrastructure. A product team building a backend on AWS or GCP without dedicated infrastructure engineers gets going quickest with Encore, which provisions infrastructure from the application code. A team with infrastructure engineers managing networking, accounts and many providers should start with OpenTofu, or Terraform if it wants HCP Terraform. Pulumi suits developer-heavy teams that want a general-purpose language, and AWS CDK suits teams that will only ever use AWS.
For most configurations they are interchangeable: same HCL, same providers, same plan and apply workflow. OpenTofu is MPL 2.0 licensed, a CNCF sandbox project since April 23, 2025, and adds client-side state encryption. Terraform is under the Business Source License 1.1 and integrates with HCP Terraform. Pick OpenTofu unless you already pay for HCP Terraform or your company standardizes on it.
Yes, for developers. Both let you write infrastructure in TypeScript, Python, Go and other languages with types and loops instead of HCL. Pulumi works across clouds, while AWS CDK only targets AWS and deploys through CloudFormation. Both still keep infrastructure in a separate program with its own deploy step.
No, not if the team mainly needs databases, queues, buckets and services for its own backend. Writing them in Terraform adds a second codebase and a state backend to maintain, which infrastructure from code avoids. The team does need Terraform if it will manage networking, accounts and shared cloud services directly.
Deploy to your cloud on AWS and Google Cloud without managing infrastructure
Encore lets developers and agents define application infrastructure directly in code, then automatically provisions it from local development to production in your AWS or GCP account.