🏗️ Terraform Essentials
Learn infrastructure as code with Terraform — desired state, providers, state, modules, configuration, and HCP Terraform — while prepping for the current HashiCorp Terraform Associate (004) exam.
0/10
1Free2🔒3🔒★🔒 Standard4🔒5🔒★🔒 Standard6🔒7🔒★🔒 Standard🎓🔒 Professional
Core Concepts
Declare the infrastructure you want and let Terraform's providers do the API work — plan previews every change before apply makes it real.
State
State is Terraform's memory — mapping your config to real resource IDs, tracking dependencies, and powering plans; go remote with locking so teams never corrupt it.
Modules
Package resources once and reuse them everywhere: call child modules with a module block, feed them input variables, and pull outputs back — from local paths, Git, or the public Registry.
Chapter review
Chapter 1 review — Foundations: workflow, state & modules
Lab: Write, plan, apply, and inspect state · 10-question check
Provisioning Workflow
Master the init → plan → apply → destroy loop, where Terraform orders work via a dependency graph, catches drift by refreshing reality, and can scope a run with -target.
Configuration & language
Write flexible, DRY HCL: parameterize with typed and validated input variables, compute with locals and functions, and mass-produce resources using count and for_each.
Chapter review
Chapter 2 review — Configuration & the provisioning workflow
Lab: Variables, validation, and for_each · 10-question check
Maintain infrastructure
Run day-two operations with confidence: import existing resources, force a rebuild with -replace, isolate environments via workspaces, and debug live runs using TF_LOG, state show, and console.
HCP Terraform
Scale Terraform to a team with HCP: remote runs and state, VCS-driven plans, a private module registry, shared variable sets, and policy-as-code guardrails on every apply.
Chapter review
Chapter 3 review — Maintain infrastructure & HCP Terraform
Lab: Import, organize, and go remote · 10-question check
Final exam
Terraform Essentials — comprehensive capstone
Hands-on capstone + course-wide exam · scored to a role level