Terraform
Infrastructure-as-code tool from HashiCorp that provisions cloud and on-premises resources from declarative configuration files.
Terraform is an infrastructure as code tool from HashiCorp for defining, provisioning and changing cloud and on-premises resources. Users describe servers, networks, DNS records, databases and other components in declarative configuration files written in HashiCorp Configuration Language (HCL). Terraform compares that description with what actually exists and computes the changes needed to make the two match. Support for individual platforms comes from plugins called providers, which translate resource definitions into calls to each service's API.
HashiCorp released Terraform in 2014, and it became one of the most widely used provisioning tools in cloud computing. A typical workflow runs a plan command to preview changes and an apply command to carry them out. Terraform records what it manages in a state file, which must be stored and shared carefully because it can contain sensitive values and is needed to calculate future changes. Modules package reusable configurations, and a public registry hosts thousands of providers and modules maintained by vendors and the community.
Terraform was distributed under the open-source Mozilla Public License until August 2023, when HashiCorp moved later releases to the Business Source License, which restricts some competing commercial uses. The change prompted a community fork, OpenTofu, hosted under the Linux Foundation. IBM completed its acquisition of HashiCorp in 2025. The licensing episode is often cited in discussions of open core business models and of how much control a single company should hold over infrastructure tools that many organizations depend on.
Key points
- Terraform declares infrastructure in HCL files and calculates the changes needed to reach that state.
- Provider plugins let a single tool manage resources across many cloud platforms and services.
- A state file tracks managed resources and must be stored securely and shared carefully.
- HashiCorp's 2023 switch to the Business Source License led to the OpenTofu fork.
Related entries
Infrastructure as Code
Practice of defining and provisioning servers, networks and other infrastructure through machine-readable files rather than manual configuration.
OpenTofu
Open-source infrastructure-as-code tool forked from Terraform in 2023 after HashiCorp moved Terraform to a source-available license.
Ansible
Open-source, agentless automation tool that configures servers, deploys software and orchestrates IT tasks using YAML playbooks run over SSH.
Cloud Computing
Delivery of computing resources such as servers, storage, databases and software over a network on demand, with users paying for what they use.
GitOps
Operational model in which a Git repository holds the declared state of infrastructure and applications, and automated agents keep systems in sync with it.
Open Core
Business model in which a company offers a core software product as open source while selling proprietary features, editions or services around it.
Kubernetes
Open-source system for automating deployment, scaling and management of containerized applications across clusters of machines.
DevOps
Set of cultural practices and tools that unites software development and IT operations to deliver changes faster and more reliably.
Featured in guides
Referenced by
Other entries that discuss or point to Terraform.