What is
Terraform
?
Terraform is an infrastructure as code tool that builds, changes and versions infrastructure, from compute instances, storage and networking to DNS entries and SaaS features.
At a glance
Attribute | Value |
|---|---|
Primary use case | Infrastructure as code provisioning and change management |
Deployment type | Self-run CLI; HCP Terraform (HashiCorp Cloud Platform); Terraform Enterprise |
Pricing model | CLI under Business Source License 1.1; HCP Terraform can be tried for free; paid support available |
Supported integrations | Providers via Terraform Registry, including Amazon Web Services, Azure, Google Cloud Platform, Oracle Cloud, Docker; GitHub Actions, Vercel, Consul, Packer |
AEP branch | Tooling |
AEP category | Integration & Delivery |
AEP subcategory | IaC & Platform Orchestration |
Profile
Teams describe infrastructure in Terraform's configuration language. Terraform core, made up of the command line interface and the main graph engine, reads that configuration, works out what has to change and hands the work to provider plugins, one per platform or service.
Focus
Teams use Terraform to provision and change infrastructure on popular service providers and custom in-house systems. Typical work includes multi-cloud Kubernetes clusters, preview environments driven by pull requests, and golden image pipelines with Packer.
Background
Terraform is a HashiCorp product. Its license names International Business Machines Corporation (IBM) as licensor. Terraform Version 1.6.0 or later is released under the Business Source License 1.1, and each version converts to MPL 2.0 four years after it is published.
Features
Infrastructure as code
Infrastructure is described in a high-level configuration syntax, so it can be versioned, shared and reused like application code.
Execution plans
A planning step shows exactly what Terraform will do on apply, so changes can be reviewed before they touch real infrastructure.
Resource graph
Terraform builds a graph of all resources and creates or modifies non-dependent resources in parallel. Operators also get insight into the dependencies in their infrastructure.
Change automation
Complex changesets are applied with minimal human interaction, in a known order, which avoids many manual errors.
Provider plugins and Registry
Providers are implemented as plugins that connect Terraform to each platform. Providers published on the Terraform Registry download automatically.
HCP Terraform
HCP Terraform lets teams collaborate on provisioning and automate infrastructure provisioning at any scale.
Pros and cons
Pros
One workflow covers low-level resources such as compute and networking as well as high-level ones such as DNS entries and SaaS features.
The same tool spans AWS, Azure, Google Cloud Platform, Oracle Cloud and Docker, which suits multi-cloud teams.
Custom in-house solutions can be managed alongside public services by writing providers through plugin development.
The source code can be copied, modified and redistributed, and internal production use within an organization is permitted.
Cons
Under the Business Source License 1.1, Terraform cannot be offered to third parties as a hosted or embedded product that competes with IBM's paid versions.
Uses outside the license terms require buying a commercial license from IBM, its affiliated entities or authorized resellers.
Running the Terraform CLI yourself means the team operates it and its workflows; HCP Terraform is the hosted option.
Many providers are built by organizations other than HashiCorp, so coverage for each platform depends on that provider's publisher.
FAQs
What is Terraform?
Terraform is an infrastructure as code tool from HashiCorp. You describe infrastructure in configuration files, review a generated plan, and then apply it to create, change or version resources safely.
How is Terraform licensed?
Terraform 1.6.0 and later uses the Business Source License 1.1 with IBM as licensor. Production use is permitted unless you offer Terraform to third parties as a hosted or embedded product competing with IBM's paid versions, and internal use within an organization is not considered competitive. Each version moves to MPL 2.0 four years after publication.
How can Terraform be deployed?
You can run the Terraform CLI in your own environment, use the hosted HCP Terraform service on the HashiCorp Cloud Platform, or use Terraform Enterprise.
Which platforms can Terraform manage?
Terraform works with any platform that has a provider plugin, including Amazon Web Services, Azure, Google Cloud Platform, Oracle Cloud and Docker. It can also manage custom in-house solutions through providers you build yourself.
How does Terraform reduce the risk of changes?
Before applying, Terraform generates an execution plan showing what it will change. Its resource graph determines the order of operations and runs independent changes in parallel.
Are there Terraform certifications?
Yes. HashiCorp offers the Terraform Associate 004 certification exam and the Terraform Authoring and Operations Advanced certification exam, both with preparation tutorials.
