Infrastructure as code tool for building, changing and versioning cloud infrastructure
source availableBUSL-1.1self-hostablefree
Terraform is HashiCorp's infrastructure as code tool: you describe cloud and on-prem resources in declarative configuration files, Terraform shows an execution plan, then creates, changes or destroys resources through each platform's API. Providers cover low-level components (compute, storage, networking) and high-level ones such as DNS entries and SaaS features, and Terraform keeps a state file of what it manages. Since version 1.6.0 it is source-available under the Business Source License 1.1 rather than open source; HCP Terraform and Terraform Enterprise are HashiCorp's hosted and self-managed team products.
Ways to install
Package managers
Problems it solves
- stop clicking around the AWS console every time I need a new server or bucket
- describe my servers, networks and DNS records in files I can keep in git
- see exactly what will change in my cloud account before anything is touched
- manage AWS, Google Cloud and Azure resources with one tool and one workflow
- review infrastructure changes in pull requests like application code
- rebuild a staging environment that matches production from the same definitions
- find out when someone changed a cloud resource by hand and it no longer matches what we declared
- reuse one standard network setup across many projects instead of copy-pasting it
- manage SaaS settings like monitoring alerts and DNS alongside our servers
- apply infrastructure changes automatically from CI when a branch merges
Features
- HCL configuration language
- plan and apply workflow
- resource dependency graph
- thousands of providers on the Terraform Registry
- reusable modules
- state tracking
- HCP Terraform for team runs
Ways to run it
HCP Terraform
Free: up to 500 managed resources, unlimited users; Essentials from $0.10, Standard from $0.47, Premium from $0.99 per managed resource per month, billed hourly; committed-use and Enterprise pricing through sales
Only in this edition
- remote runs, VCS integration, a private module registry and SAML SSO on every plan
- more concurrent runs on paid plans (1 on Free, up to 200 on Premium)
- custom RBAC from Essentials
- policy enforcement and cost estimation from Standard
- audit logging and priority support on Premium
Terraform CLI
free
Not included
- hosted remote runs, the private registry, team management, SSO, policy enforcement and audit logs
- the right to offer it to third parties as a competing hosted or embedded product, under BUSL-1.1
You arrange
- storage for state files, or a remote backend with locking
- running plan and apply yourself or from CI
- credentials for each cloud provider
Terraform Enterprise
Price not published
Only in this edition
- HCP Terraform's features on your own infrastructure
- premium support
You arrange
- a licence from HashiCorp sales
- a container platform: Docker, Podman, Kubernetes, OpenShift or Nomad
- PostgreSQL and S3-compatible object storage (or persistent disk in disk mode)
- an external Redis for active-active mode
- TLS certificates, host preparation and upgrades
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
| Has single sign-on | HCP Terraform: Free, Essentials, Standard and Premium plans, free; Terraform Enterprise: every plan, priced by sales234 |
Forks
- OpenTofu Open source infrastructure as code, a community-driven fork of Terraform. Its own project since 2023.
Alternatives
The same job
These do what Terraform does.
- OpenTofu Open source infrastructure as code, a community-driven fork of Terraform
- Pulumi Infrastructure as code for humans and agents
- AWS CloudFormation AWS's native infrastructure as code service
- Crossplane Build cloud native control planes that manage infrastructure and apps through Kubernetes APIs
- Serverless Framework Deploy serverless apps and their infrastructure to AWS Lambda from YAML
- Google Cloud CLI The gcloud command-line tool for managing Google Cloud resources