Back to all tools
Terraform logo

Terraform

Write, plan, and apply infrastructure as code across any cloud.

0Free
Infrastructure as Code
Share:XLinkedInWhatsApp

Overview

Open-source tool by HashiCorp for building, changing, and versioning infrastructure safely and efficiently.

Key Features

  • Declarative HCL configuration language
  • State management for tracking real infrastructure
  • Plan/apply workflow to preview changes before applying
  • Provider ecosystem for AWS, Azure, GCP, and 1000+ services
  • Modules for reusable infrastructure components
  • Remote backends for team collaboration and state locking

Real-World Workflows

Provision a production VPC on AWS

  1. 1Write HCL to define VPC, subnets, route tables, and security groups
  2. 2Run terraform init to download the AWS provider
  3. 3Run terraform plan to preview all resources to be created
  4. 4Run terraform apply to provision the infrastructure
  5. 5Store state in S3 backend with DynamoDB locking for team access

Multi-environment infrastructure with workspaces

  1. 1Define modules for compute, networking, and storage
  2. 2Use terraform workspace to create dev, staging, and prod environments
  3. 3Run plan/apply per environment promoting changes bottom-up
  4. 4Use Terraform Cloud for remote runs, audit logs, and policy checks

Getting Started

brew install terraform
terraform init
terraform plan
terraform apply

Compare Alternatives

See how Terraform stacks up against similar tools.