Terraform Basics – Infrastructure as Code (IaC)

Terraform lets you create and manage infrastructure using code instead of manual UI clicks.

Servers, VPCs, Load Balancers, Databases — all defined in files.


🔹 What is Infrastructure as Code (IaC)?

IaC = Managing infrastructure through configuration files.

Benefits:


🔹 What is Terraform?

Terraform is an open-source IaC tool by HashiCorp that works across:

AWS • Azure • GCP • Kubernetes • VMware • and more.


🔁 Terraform Workflow

WriteCode →Init →Plan →Apply →Destroy

terraform init – downloads provider plugins

terraform plan – preview changes