Course contentsShow
← Cloud and Infrastructure
Lesson 723 of 2,98914. Terraform FundamentalsFree lesson

What is Terraform and Why Use It

Introduction to Terraform as an infrastructure as code tool, its declarative approach, and key benefits.

What is Terraform and Why Use It

You'll learn what Terraform is, how it approaches infrastructure management, and why teams choose it for cloud operations.

What is Terraform?

Terraform is an open-source infrastructure as code (IaC) tool created by HashiCorp. It allows you to define, provision, and manage cloud infrastructure using human-readable configuration files. Think of Terraform as a blueprint system for your entire infrastructure — instead of manually clicking through cloud consoles to create resources, you write code that describes what you want, and Terraform makes it happen.

The Declarative Approach

Terraform uses a declarative approach, meaning you describe the desired end state of your infrastructure, not the steps to get there. You tell Terraform "I want three servers with these specifications" rather than "First create a server, then configure it, then create another..."

This is like telling a contractor "I want a house with three bedrooms and two bathrooms" instead of giving step-by-step construction instructions. Terraform figures out the execution plan.

Why Use Terraform?

Multi-Cloud Support: Unlike cloud-specific tools, Terraform works across AWS, Azure, GCP, and hundreds of other providers. You use the same workflow and syntax everywhere.

Vendor-Neutral: You're not locked into one cloud provider's tooling, making migrations and multi-cloud strategies feasible.

Large Ecosystem: Terraform has extensive community support, pre-built modules, and integrations that accelerate development.

Human-Readable Syntax: Configuration files use HashiCorp Configuration Language (HCL), which is designed to be clear and maintainable.

Key Takeaway: Terraform is a declarative, multi-cloud IaC tool that lets you manage infrastructure through code using a consistent workflow across any provider, making infrastructure predictable, repeatable, and portable.