Terraform & Terragrunt Zero-to-Hero
A five-tier mastery path — Foundation to Specialist — for Terraform & Terragrunt: author modules for every service, orchestrate multi-environment infrastructure, enforce approval gates, and run an enterprise IaC platform.
Start the courseA complete, job-oriented path through Terraform and Terragrunt: HCL and the core workflow, state and remote backends, authoring and versioning reusable modules, Terragrunt DRY multi-environment orchestration, CI/CD approval gates, policy-as-code, testing, drift recovery, and enterprise IaC platforms — plus Pulumi, CDKTF, CloudFormation and Ansible.
What you’ll be able to do
- Write Terraform confidently — HCL, providers, the core workflow and state
- Author, test, version and publish reusable modules for any cloud
- Orchestrate dev/uat/staging/prod with Terragrunt — DRY, dependencies, remote state
- Enforce approval gates, policy-as-code and OIDC keyless auth in CI/CD
- Recover from drift and state corruption, and operate state at scale
- Architect an enterprise IaC platform and be Terraform-Associate-ready
Prerequisites
- Basic IT literacy and a terminal — no prior IaC experience required
- A free cloud account (AWS/Azure/GCP) for the hands-on labs
Who it’s for
Engineers new to IaC, cloud engineers standardising infrastructure, and people preparing for the HashiCorp Terraform Associate or real platform-engineering work.
Curriculum
Tier 1 · Foundation — Terraform Basics (Associate)
Start at zero: what IaC is, HCL, the core workflow, state, and authoring your first reusable module.
- 1 Terraform Fundamentals: HCL, Providers, State & the Core Workflow
- 2 The Terraform CLI, In Depth: Install, First Steps & the Complete Command Reference
- 3 HCL, In Depth: Blocks, Arguments, Expressions, Types & Templates
- 4 Terraform Providers, In Depth: required_providers, Versions, Aliases & the Lock File
- 5 Terraform Resources & Meta-Arguments, In Depth: count, for_each, depends_on & lifecycle
- 6 Terraform Variables, Outputs & Locals, In Depth: Types, Validation, Sensitivity & Precedence
- 7 Infrastructure as Code: Core Concepts — State, Plan/Apply, Drift & Idempotency
- 8 Authoring Terraform Modules: Structure, Inputs/Outputs, Versioning & Publishing
- 9 Consuming Terraform Modules, In Depth: Sources, Versions, Composition & the Registry
Tier 2 · Intermediate — State, Remote Backends & HCL Depth
Scale beyond a laptop: remote state, dynamic blocks & complex types, and safe refactoring.
- 10 Terraform Remote State at Scale: Backends, Locking, Splitting, and State Surgery
- 11 Terraform State, In Depth: the State File, the state Commands, Locking & Sensitive Data
- 12 Terraform Backends, In Depth: Local vs Remote, Every Backend Type, Locking & Migration
- 13 HCP Terraform (Terraform Cloud), In Depth: Workspaces, VCS-Driven Runs, Remote State & the Private Registry
- 14 Terraform Workspaces, In Depth: CLI Workspaces vs HCP Workspaces, State Isolation & When to Use Each
- 15 Mastering Terraform Dynamic Blocks, Complex Types, and Variable Validation
- 16 Terraform Built-in Functions & Expressions, In Depth: for, dynamic, conditionals & the Function Catalog
- 17 Terraform Provisioners, In Depth: local-exec, remote-exec, connection, null_resource & terraform_data
- 18 Refactoring Terraform Safely with moved, import, and removed Blocks
Tier 2 · Intermediate — Terragrunt
Stay DRY at scale: Terragrunt fundamentals, multi-account environments, and monorepo run-all.
- 19 Terragrunt Fundamentals: DRY Configurations, Remote State & Dependencies
- 20 Terragrunt Configuration, In Depth: Every Block, Function & Hook in terragrunt.hcl
- 21 Terragrunt Stacks, In Depth: Units, Stacks, values & Generating Infrastructure from a Blueprint
- 22 DRY Multi-Environment Infrastructure with Terragrunt: Stacks, Dependencies, and Promotion
- 23 Scaling Terragrunt Monorepos with Dependency Graphs and run-all
Tier 3 · Advanced — Multi-Environment & CI/CD Approval Gates
Promote dev→uat→staging→prod safely: the 3-tier pattern, OIDC PR automation, Atlantis and Spacelift.
- 24 Multi-Environment 3-Tier Infrastructure with Terragrunt & CI/CD Approval Gates
- 25 A Production Terraform CI/CD Pipeline on GitHub Actions with OIDC
- 26 Deploy Atlantis for Pull-Request Terraform Automation with Server-Side Workflows
- 27 Configure Spacelift Stacks, OPA Policies, and Drift Detection for Terraform GitOps
Tier 3 · Advanced — Policy-as-Code & Security
Guardrails on every plan: Checkov/tfsec/Trivy, OPA/Conftest, Sentinel, and secrets in IaC.
Tier 3 · Advanced — Testing & Provider Development
Prove modules work: native testing + Terratest, and building your own provider.
Tier 3 · Advanced — State Operations, Drift & Orchestration
Operate state in anger: drift reconciliation, state surgery/recovery, and stacks orchestration.
- 34 Detecting and Reconciling Terraform Drift Without Nuking Production
- 35 Terraform State Surgery: Recovering from Corruption, Locks, and Split-Brain
- 36 Importing Existing Infrastructure into Terraform, In Depth: import Blocks, Config Generation & Brownfield Adoption
- 37 Orchestrating Multi-Environment Infrastructure with Terraform Stacks
Tier 4 · Expert — IaC Tool Selection
Choose the right tool: Terraform vs Terragrunt vs Ansible vs Pulumi.
Tier 5 · Specialist — Alternative IaC & Multi-Cloud
Beyond Terraform: Pulumi, CDKTF, CloudFormation, Crossplane and Bicep.
- 39 Programmatic IaC with Pulumi and TypeScript: Component Resources and the Automation API
- 40 Advanced Pulumi in Python: Dynamic Providers and Stack References
- 41 Programmatic Infrastructure with CDK for Terraform in TypeScript
- 42 Advanced CloudFormation: StackSets, Custom Resources, Hooks, and Drift at Org Scale
- 43 Extending CloudFormation with Macros, Transforms, and CDK Escape Hatches
- 44 Building an Internal Cloud API with Crossplane Compositions and XRDs
- 45 Shipping Azure Workloads with Bicep: Deployment Stacks, what-if, and a CI Pipeline
- 46 Operating a Bicep Private Module Registry and Templating at Scale
Tier 5 · Specialist — Configuration Management (Ansible)
Configure servers idempotently: Ansible collections/testing and dynamic inventory.
Tier 5 · Specialist — 3rd-Party Integrations & On-Prem Provisioning
Terraform everywhere: Datadog, Snowflake, vSphere/Packer, Nutanix and OpenStack.
- 49 Configure Datadog Monitors, SLOs, and Synthetic Browser Tests as Code with Terraform
- 50 Set Up Snowflake RBAC, Resource Monitors, and Warehouse Auto-Suspend with Terraform
- 51 Provision VMware vSphere Clusters with Packer and Terraform Golden Images
- 52 Set Up Nutanix AHV Clusters with Prism Central and the Terraform NX Provider
- 53 Provision OpenStack Compute and Networking with Terraform and Heat Templates
Track · Troubleshooting (Easy → Complex)
Diagnose anything: state, providers, drift, dependencies and CI/CD failures.
Track · Architecting (Easy → Complex)
Turn requirements into IaC platforms: a six-rung ladder from a single module to an enterprise platform.
Track · Certification Center
Pass the exam: the HashiCorp Terraform Associate (003) prep kit.
Track · Job-Ready — Projects
Get hired: a six-project portfolio ladder from a first module to a multi-cloud platform.