Updated Nov 20, 20269 min read

Do You Still Need Terraform in 2026?

A decision by team and project type: when Terraform or OpenTofu earns its place, when it is overhead, and what to use instead.

Illustration for Do You Still Need Terraform in 2026?

No, not for most application backends. When the infrastructure is a database, a queue, a bucket and cron jobs on AWS or GCP, Encore provisions them from the application code in your own cloud account, with no HCL or state file. Keep Terraform or OpenTofu for multi-cloud estates, platform teams and networking.

Terraform became the default when teams provisioned VMs by hand. A 2026 backend is a few managed services changed by the people, and agents, who write the code.

What should you use in 2026, Terraform or something else?

RankOptionUse it whenWhat you maintain
1Encore (infrastructure from code)Your infrastructure is application-level (Postgres, Pub/Sub, buckets, cron, secrets, caches) on AWS or GCPThe application code; resources are derived from it
2OpenTofuYou need Terraform's model and want an MPL-licensed, community-governed toolHCL, state, modules
3TerraformMulti-cloud or network-level estates, platform teams, existing large estates, HCP Terraform workflowsHCL, state, modules
4PulumiYou want IaC in a general-purpose language across many cloudsInfrastructure programs and state, separate from the app
5AWS CDKYou are AWS-only and want IaC in TypeScript, Python or GoCDK apps and CloudFormation stacks
6Console or CLIA handful of resources created once and rarely touchedA runbook

Versions checked on November 20, 2026: Terraform 1.17.2, OpenTofu 1.13.9, Pulumi 3.277.0 and AWS CDK 2.277.0. The ranking is for application developers, which is who usually asks this question. If you are on a platform team running shared infrastructure for 40 services across clouds, read the table bottom-up: OpenTofu or Terraform first.

What does Terraform give you?

Terraform gives you a declarative description of infrastructure in HCL, a resource graph it uses to compute changes, a state file that records what it believes exists, and a plan/apply cycle that shows you the diff before you commit to it. The provider ecosystem covers AWS, GCP, Azure, Cloudflare, Datadog and hundreds of other APIs through one interface.

That buys you:

  • Reproducibility. The same config produces the same infrastructure across environments and over time.
  • Review. Infrastructure changes go through pull requests and show a diff before they land.
  • Breadth. One tool and one mental model for almost every cloud resource that exists.
  • Auditability. State and plan output give you a record of what changed and when.

It also costs you a separate language, a separate codebase, a state file you have to store, lock and protect, and module and provider knowledge your team has to carry. Whether you need Terraform comes down to whether that value outweighs that cost for your situation.

Two changes since 2023 also feed the question: HashiCorp moved Terraform from MPL 2.0 to the Business Source License in August 2023, and IBM completed its acquisition of HashiCorp in February 2025. OpenTofu, the MPL fork, was accepted into the CNCF in April 2025. None of that changes what Terraform does, but it decides which of the two tools a team picks when it needs one.

When do you still need Terraform?

If you match these, Terraform or OpenTofu is the right tool and the setup cost pays for itself.

You run infrastructure across more than one cloud. Once your estate spans AWS and GCP, or AWS and Cloudflare, or on-prem and a public cloud, you want one tool and one workflow across all of it. Terraform's provider model is the strongest answer there, while cloud-native tools such as CloudFormation stop at their own cloud's edge.

You have a dedicated platform or ops team. When provisioning is owned by people whose job is infrastructure, explicit state, plan review and module libraries are the controls they want. The overhead that feels heavy to an app developer is the workflow a platform team is built around.

You want a reviewed plan and a recorded apply for every infrastructure change. Terraform plus a policy engine (Sentinel, OPA/Conftest) and a run platform (HCP Terraform, Spacelift, env0) produces a plan you can review, an approval step before apply, and a log of what was applied. Whether that meets your audit or change-control process is for you to judge.

You already have a large Terraform estate. With thousands of resources under management and a team fluent in the codebase, the question is not "do we need Terraform" but "is there any reason to move." Usually there is not, at least not for the estate as a whole. New application services are a different question, covered below.

You provision infrastructure that is not application-level. VPCs, subnets, account-wide access policies, DNS zones, VPN and transit gateways and hand-tuned security groups are what Terraform was built for, and nothing at the application layer replaces it.

When can you skip Terraform?

These are the cases where teams reach for Terraform out of habit and pay a setup and maintenance cost that buys them little.

You are a small team on a single cloud. For one or two engineers shipping an app on AWS or GCP, the remote state backend, state locking, module structure and CI wiring are often more moving parts than the infrastructure they manage.

You are starting a new backend. With no estate to preserve, there is no reason to adopt HCL by default. This is the cheapest moment to declare Postgres, object storage, Pub/Sub and scheduled jobs next to the code that uses them.

Your infrastructure is entirely application-level. If everything you provision is a database, a cache, a queue, a bucket or a scheduled job for one application, a separate IaC codebase describing those resources is a second source of truth that has to stay in sync with the first.

A platform already provisions for you. If a PaaS already creates and manages your resources, adding Terraform on top duplicates work the platform is doing.

You provision rarely, and by hand is fine. For a handful of resources you will create once, the cloud console or a short CLI script is faster than a Terraform workflow you will barely use.

How do you decide for your team?

The more of these you answer "yes" to, the more Terraform earns its place:

  • Does your infrastructure span more than one cloud provider?
  • Is provisioning owned by a dedicated platform or ops team rather than app developers?
  • Do you want every infrastructure change to go through a reviewed plan and a recorded apply?
  • Do you already have a substantial Terraform or OpenTofu estate and team fluency?
  • Do you manage a meaningful amount of non-application infrastructure (networking, access policies, DNS, VPNs)?
  • Will many engineers across many teams make infrastructure changes through a shared workflow?

Mostly "no" means you are in skip-it territory, and mixed answers are common: a platform team keeps Terraform for the VPC and the access policy baseline, and application teams stop writing HCL for the databases and queues their services use.

What replaces Terraform for application infrastructure?

Encore

Terraform, Pulumi and CDK share one shape: infrastructure is described in a separate codebase, tracked in a separate state file and applied by a separate tool. The application has no awareness of the infrastructure it depends on, and the IaC has no awareness of how the app uses it.

Infrastructure from code removes that split, and Encore lets a service declare the resources it uses, and provisions the matching cloud services from those declarations. Here is a sign-up service with a database, an object storage bucket for avatars, a cache for rate limits and a nightly cleanup job:

import { api } from "encore.dev/api"; import { SQLDatabase } from "encore.dev/storage/sqldb"; import { Bucket } from "encore.dev/storage/objects"; import { CacheCluster, IntKeyspace, expireIn } from "encore.dev/storage/cache"; import { CronJob } from "encore.dev/cron"; // RDS on AWS, Cloud SQL on GCP, Docker locally. const db = new SQLDatabase("users", { migrations: "./migrations" }); // S3 on AWS, Cloud Storage on GCP, local disk in development. export const avatars = new Bucket("avatars", { public: true }); // ElastiCache or Memorystore (Redis) in the cloud, in-memory locally. const cache = new CacheCluster("users-cache", { evictionPolicy: "allkeys-lru" }); const signupAttempts = new IntKeyspace<{ email: string }>(cache, { keyPattern: "signup/:email", defaultExpiry: expireIn(60 * 60 * 1000), }); function normalizeEmail(email: string): string { return email.trim().toLowerCase(); } export const signup = api( { expose: true, method: "POST", path: "/signup" }, async (req: { email: string }): Promise<{ ok: boolean }> => { // Key the limit by the email being registered, never by a client-supplied IP. // Production should also throttle at the edge by the trusted connection address. const email = normalizeEmail(req.email); const attempts = await signupAttempts.increment({ email }, 1); if (attempts > 5) return { ok: false }; await db.exec`INSERT INTO users (email) VALUES (${email})`; return { ok: true }; }, ); export const cleanup = api({}, async (): Promise<void> => { await db.exec`DELETE FROM sessions WHERE expires_at < now()`; }); // Scheduled by the Encore platform; no scheduler to configure. const _ = new CronJob("cleanup", { title: "Nightly cleanup", schedule: "0 3 * * *", endpoint: cleanup, });

The equivalent database alone, the Terraform way:

resource "aws_db_instance" "users" { identifier = "users" engine = "postgres" engine_version = "17" instance_class = "db.t4g.micro" allocated_storage = 20 db_name = "users" username = var.db_username password = var.db_password db_subnet_group_name = aws_db_subnet_group.main.name vpc_security_group_ids = [aws_security_group.db.id] skip_final_snapshot = true } # plus the subnet group, security group, parameter group, # a place to store db_password, the bucket, the cache cluster, # the scheduler, the access policies, and a way to run migrations.

The Terraform version exposes every RDS setting, which is what a platform team tuning a shared database fleet wants. The Encore version is derived from the code that uses it, runs locally with encore run against a local Postgres in Docker and an in-memory cache, and has no state file. The Encore platform provisions RDS, S3 and ElastiCache in your own AWS account (Cloud SQL, Cloud Storage and Memorystore on GCP), and Encore provisions an IAM role for the service, or a service account on GCP. Instance sizes, networking and backups stay adjustable in infrastructure configuration. encore build docker produces a standalone image if you later want to run it yourself.

Can Encore and Terraform live side by side?

Yes, and for teams with an existing estate this is the usual setup. Terraform keeps the VPC, the account-wide access policies and shared resources. Encore services can use existing RDS databases, and the Encore Terraform provider lets the rest of your Terraform read Encore-managed resources. See replace application Terraform for an incremental path.

Do you still need Terraform?

Verdict. Terraform is not dying, and for multi-cloud estates, platform teams, network-level infrastructure and teams that want a reviewed plan and a recorded apply for every change, it is still the right tool; pick OpenTofu if the license matters to you. For a backend on AWS or GCP whose infrastructure is databases, queues, buckets, caches and cron jobs, you do not need it: Encore provisions those from your code in your own cloud account. The mistake is adopting Terraform as the default without checking which group you are in.

If you are about to write HCL for a new service's database and queue, try Encore on that service first and keep Terraform for the parts of the estate it is good at.

Install Encore
brew install encoredev/tap/encore &&
encore app create
Copy

Frequently asked questions

Do I still need Terraform in 2026?

No. Most application backends can skip it. When the infrastructure is databases, queues, buckets, cron jobs and secrets on AWS or GCP, infrastructure from code such as Encore provisions those resources from the application code in your own cloud account, with no HCL or state file. Keep Terraform or OpenTofu for multi-cloud estates, dedicated platform teams, large existing estates and network-level resources, and for teams that want every infrastructure change to go through a reviewed plan and a recorded apply.

Do I need Terraform for a small project?

No. For a single-cloud app run by one or two engineers, Terraform's state backend, locking, module structure and CI wiring often cost more time than they save.

Is Terraform still worth learning in 2026?

Yes. It pays off on teams that manage infrastructure at scale or across clouds. Terraform and OpenTofu remain the default for large estates, and HCL is a widely transferable skill. For greenfield single-cloud apps it is less essential than it was five years ago.

Should I switch from Terraform to OpenTofu?

Yes. Switch if the Business Source License that Terraform moved to in August 2023 is a problem for you. OpenTofu is the MPL-licensed fork, part of the CNCF since April 2025, and accepts the same configuration for most estates. It does not change the workflow: you still write HCL and manage state.

Can I run production without Terraform?

Yes. Managed platforms, PaaS products and infrastructure from code tools provision real cloud resources without HCL. The question is whether your infrastructure fits the application-level resources those tools cover, or whether you need the full range of raw cloud resources Terraform can address.

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.

~/orders — claude
Claude Code
Claude Code v2.1.180Opus 5.5~/orders