T

Terraform

Terraform is an Infrastructure as Code tool that enables defining and provisioning infrastructure across multiple cloud providers.

What is Terraform?

Terraform is an open-source Infrastructure as Code (IaC) tool by HashiCorp that allows you to define and provision infrastructure using a declarative configuration language called HCL (HashiCorp Configuration Language).

Terraform Concepts

  • Provider: Plugin for interacting with cloud APIs
  • Resource: Infrastructure component to create
  • Module: Reusable configuration package
  • State: Current infrastructure status
  • Plan/Apply: Preview and execute changes

Terraform Workflow

Write configuration, initialize providers, plan changes, apply configuration, and manage state.

Common Misconceptions

  • "Terraform replaces cloud consoles" - Complementary tools
  • "State file is optional" - Critical for Terraform operation
  • "Terraform is only for cloud" - Works with many providers