What is Terraform?
Terraform is an open-source infrastructure-as-code tool from HashiCorp that lets you describe cloud resources — networks, databases, servers, DNS records — in declarative configuration files, then provision them across hundreds of providers with a workflow that always shows you a plan of what will change before it changes anything.
Where it came from
HashiCorp released Terraform in 2014 to solve a specific problem: teams were managing cloud infrastructure through a mix of console clicks and brittle shell scripts, with no reliable way to know what existed or to rebuild it. Terraform introduced a declarative language — HCL, the HashiCorp Configuration Language — where you describe the end state you want and the tool figures out how to get there. It quickly became the de facto standard for cloud-agnostic provisioning, the most common concrete answer to the broader idea of infrastructure as code.
Providers and the plugin model
Terraform itself does not know what an S3 bucket or a Cloudflare DNS record is. That knowledge lives in providers — plugins that translate Terraform's generic resource model into the specific API calls of AWS, Azure, Google Cloud, Kubernetes, GitHub, Datadog, and thousands of others. This plugin architecture is why Terraform is "cloud-agnostic": the same workflow manages a multi-cloud estate, and a single configuration can stitch together resources from several providers at once — a database in AWS, monitoring in Datadog, DNS in Cloudflare.
State — the part that surprises people
Terraform keeps a state file that maps your configuration to the real resources it created and their current attributes. This is how it knows that the database in your code is the database with a specific ID in the cloud, so it can compute the smallest change instead of recreating everything. State is also the most common source of pain: stored locally it cannot be shared, and two people applying at once can corrupt it. The standard fix is a remote backend — S3 with DynamoDB locking, Terraform Cloud, or equivalents — so state is centralized and locked during runs. State can also contain secrets, so it must be treated as sensitive.
The plan-then-apply workflow
The core loop is three commands. terraform init downloads providers and configures the backend. terraform plan compares your configuration to state and shows a precise diff: what will be created, changed, or destroyed. terraform apply executes that plan after you approve it. The plan step is the reason teams trust Terraform in production — you see exactly what is about to happen, you can require it as a review artifact in a pull request, and a destructive change is visible before it runs rather than after.
The license change and OpenTofu
In 2023 HashiCorp moved Terraform from an open-source license to the Business Source License, which restricts certain competing uses. A coalition of users and vendors responded by forking the last open-source version into OpenTofu, now governed by the Linux Foundation. OpenTofu aims to stay drop-in compatible with Terraform configurations, so teams that need a fully open-source tool have a path. For most organizations the practical impact is small, but it is worth knowing both exist when you choose a standard.
At QUANT LAB
Terraform (or OpenTofu) is our usual tool for provisioning the environments we build under cloud infrastructure and cloud migration. We set up remote state with locking from day one, gate every change behind a reviewed plan, and structure modules so a client can stand up a new region or a fresh environment without us. It also pays off on the security side: when a VPC, a security group, and an IAM role are all declared in code, a misconfiguration shows up in a diff and a review rather than surfacing later in a penetration test.
Long-form deep-dives that use this term
All postsAdding AI Features to Your SaaS (2026)
Where AI helps, build-vs-API trade-offs, evals, guardrails, and shipping without torching margins.
Read postAPI Rate Limiting Strategies for 2026
Token bucket vs sliding window, per-key quotas, 429 semantics, and where to enforce limits.
Read postAPI Security Best Practices (2026)
Auth, rate limiting, input validation, secrets, and the OWASP API Top 10.
Read post
Related terms
Standing up cloud infrastructure?
We provision cloud environments with Terraform so you own reproducible, reviewable infrastructure from day one. Book a 30-minute call.