101 β€” Introduction to IaC & Terraform

Beginner

Understand what Infrastructure as Code is, why it matters, and how to install and verify Terraform on your local machine.

Learning Objectives

1
Understand declarative vs imperative infrastructure
2
Install Terraform CLI
3
Verify your Terraform installation
4
Understand the Terraform workflow
Step 1

Create a practice directory

Start by creating a clean directory for your Terraform practice. This keeps your infrastructure code organized.

Commands to Run

mkdir -p ~/terraform-practice/lesson-101
cd ~/terraform-practice/lesson-101

What This Does

The `mkdir -p` command creates the directory and any parent directories needed. We'll use this directory for all Terraform lessons.

Expected Outcome

A new directory is created. Verify with `pwd` - you should see `/Users/yourname/terraform-practice/lesson-101`.

Pro Tips

  • 1
    Keep each lesson in its own subdirectory to avoid conflicts
  • 2
    Use version control (Git) for your Terraform configurations
Was this step helpful?

All Steps (0 / 8 completed)