talira

Terraform

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

Hosted by HashiCorp

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

Pricing

Terraform CLI

You run it, BUSL-1.1 (source-available)

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

Self-hosting docs

Terraform Enterprise

You run it, under a commercial licence

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

Self-hosting docs

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known
Has single sign-onHCP 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.

  1. OpenTofu Open source infrastructure as code, a community-driven fork of Terraform
  2. Pulumi Infrastructure as code for humans and agents
  3. AWS CloudFormation AWS's native infrastructure as code service
  4. Crossplane Build cloud native control planes that manage infrastructure and apps through Kubernetes APIs
  5. Serverless Framework Deploy serverless apps and their infrastructure to AWS Lambda from YAML
  6. Google Cloud CLI The gcloud command-line tool for managing Google Cloud resources

Compare Terraform with the top 3