Course home › Terraform 8 Hours
Terraform 8-Hour Interactive Crash Course
For Senior Cloud Engineers · Core Fundamentals → Production Readiness → Cloud Deployment (Azure / AWS) → CI/CD and Policy Governance → Architecture Practice → Advanced Troubleshooting → Production Issues and Interviews (optional) · 8 lessons × 1 hour
Terraform 1.17azurerm 5.xaws 6.xHCP TerraformOpenTofu 1.13Verified 2026-11-15
Learning path:
← Kubernetes 8 + 1 Hours
① Core Fundamentals
② From “It Runs” to “Production-Ready”
③ Moving to Cloud Platforms (Azure)
④ Moving to Cloud Platforms (AWS)
⑤ Automated Operations: CI/CD and Policy Governance
⑥ Infrastructure Architecture in Practice
⑦ Deep Troubleshooting, Optimization and Advanced Topics
⑧ 50 Production Issues + 50 Interview Questions (optional)
Next course: Ansible 8 Hours →
8 lessons
Hour 1Core FundamentalsIaC and Terraform Architecture, HCL Syntax and Core Blocks, Providers and the Lock File, Resources, Dependencies and Lifecycle, Variables, Outputs, Locals, Data Sources and Expression Functions, State Basics, CLI Workflow and Troubleshooting BasicsTerraform 1.17 · Docker provider · HCL
Hour 2From “It Runs” to “Production-Ready”Module Design and Reuse, Remote State, Locking and Isolation, count, for_each and dynamic, Refactoring: moved, import, removed, Validation: validation, pre/postcondition, check, terraform test and mocks, Static Checks and Security Scanning, Version Constraints, Upgrades and Production-Readiness ReviewTerraform 1.17 · terraform test · tflint
Hour 3Moving to Cloud Platforms (Azure)azurerm Provider and Authentication, azurerm Remote Backend, Networking: VNet, Subnets, NSG, Compute: VMs and Container Apps, Identity and Secrets: Managed Identity, Key Vault, Azure Verified Modules and azapi, Cloud Troubleshooting Lab, Cost, Cleanup and Self-Checkazurerm 5.x · azapi · Azure Verified Modules
Hour 4Moving to Cloud Platforms (AWS)AWS Provider and Authentication, S3 Backend and Native Locking, Networking: VPC, Subnets, Security Groups, Compute: EC2 and ECS on Fargate, IAM and Secrets: Roles, Secrets Manager, Community Modules and EKS, Cloud Troubleshooting Lab, Cost, Cleanup and Self-Checkaws 6.x · S3 backend · terraform-aws-modules
Hour 5Automated Operations: CI/CD and Policy GovernanceGitOps-Style Terraform Workflow, GitHub Actions + OIDC Plan and Apply, HCP Terraform Workspaces and Runs, Policy as Code: Terraform Policy / Sentinel / OPA, Drift Detection and Continuous Compliance, Cost Estimation and Tag Governance, Stacks and Multi-Deployment Orchestration, Recap of the First Five Hours, Self-Check and CleanupGitHub Actions OIDC · HCP Terraform · Terraform Policy
Hour 6Infrastructure Architecture in PracticeRepository and Environment Layout, Module Composition and Interface Design, State Splitting and Cross-Stack References, Multi-Region and Multi-Account/Subscription, Secrets: Ephemeral Resources and Write-Only Arguments, Zero-Downtime Changes and Blue/Green, Importing Existing Resources and Migration, Comprehensive Architecture ReviewTerraform 1.17 · Multi-Environment · Module Composition
Hour 7Deep Troubleshooting, Optimization and Advanced TopicsTroubleshooting Methodology and TF_LOG, State Surgery: mv, rm, pull, push, Dependency Cycles, Unknown Values and Plan Failures, Provider Issues and API Rate Limiting, Performance: parallelism, refresh and Large Stacks, Upgrading Terraform and Providers, Customization: External Data, Provider Development Basics, Mixed-Fault Blind BoxTF_LOG · State Surgery · OpenTofu
Hour 8 · Optional50 Production Issues + 50 Interview QuestionsState and Backend, Plan/Apply and Dependencies, Providers, Authentication and Cloud APIs, Modules, Versions, CI/CD and Drift, Core Concepts and Architecture, State, Modules and HCL, Multi-Environment, CI/CD and Governance, Security, Cloud Practice and Scenario DesignTerraform 1.17 · azurerm 5.x · aws 6.x
The progress bar on each card shows the learning progress saved for each lesson in this browser (hidden if the browser blocks local storage).
Full Outline and Time Allocation (7 × 1 hour + optional Hour 8)
| Lesson / Module | Time | Topic |
|---|---|---|
| Hour 1 · Core Fundamentals (Open) | ||
| 1-0 | Pre-class | Environment Setup (Terraform CLI + Docker) |
| 1-1 | 00–06 | IaC and Terraform Architecture |
| 1-2 | 06–13 | HCL Syntax and Core Blocks |
| 1-3 | 13–19 | Providers and the Lock File |
| 1-4 | 19–27 | Resources, Dependencies and Lifecycle |
| 1-5 | 27–34 | Variables, Outputs, Locals |
| 1-6 | 34–41 | Data Sources and Expression Functions |
| 1-7 | 41–50 | State Basics |
| 1-8 | 50–60 | CLI Workflow and Troubleshooting Basics |
| Hour 2 · From “It Runs” to “Production-Ready” (Open) | ||
| 2-0 | Pre-class | Bridge and Warm-Up |
| 2-1 | 00–08 | Module Design and Reuse |
| 2-2 | 08–15 | Remote State, Locking and Isolation |
| 2-3 | 15–22 | count, for_each and dynamic |
| 2-4 | 22–30 | Refactoring: moved, import, removed |
| 2-5 | 30–37 | Validation: validation, pre/postcondition, check |
| 2-6 | 37–45 | terraform test and mocks |
| 2-7 | 45–52 | Static Checks and Security Scanning |
| 2-8 | 52–60 | Version Constraints, Upgrades and Production-Readiness Review |
| Hour 3 · Moving to Cloud Platforms (Azure) (Open) | ||
| 3-0 | Pre-class | Warm-Up and Azure Setup |
| 3-1 | 00–06 | azurerm Provider and Authentication |
| 3-2 | 06–13 | azurerm Remote Backend |
| 3-3 | 13–21 | Networking: VNet, Subnets, NSG |
| 3-4 | 21–30 | Compute: VMs and Container Apps |
| 3-5 | 30–37 | Identity and Secrets: Managed Identity, Key Vault |
| 3-6 | 37–45 | Azure Verified Modules and azapi |
| 3-7 | 45–53 | Cloud Troubleshooting Lab |
| 3-8 | 53–60 | Cost, Cleanup and Self-Check |
| Hour 4 · Moving to Cloud Platforms (AWS) (Open) | ||
| 4-0 | Pre-class | Warm-Up and AWS Setup |
| 4-1 | 00–06 | AWS Provider and Authentication |
| 4-2 | 06–13 | S3 Backend and Native Locking |
| 4-3 | 13–21 | Networking: VPC, Subnets, Security Groups |
| 4-4 | 21–30 | Compute: EC2 and ECS on Fargate |
| 4-5 | 30–37 | IAM and Secrets: Roles, Secrets Manager |
| 4-6 | 37–45 | Community Modules and EKS |
| 4-7 | 45–53 | Cloud Troubleshooting Lab |
| 4-8 | 53–60 | Cost, Cleanup and Self-Check |
| Hour 5 · Automated Operations: CI/CD and Policy Governance (Open) | ||
| 5-0 | Pre-class | Preparation: GitHub Repository and Cloud Identity |
| 5-1 | 00–07 | GitOps-Style Terraform Workflow |
| 5-2 | 07–17 | GitHub Actions + OIDC Plan and Apply |
| 5-3 | 17–25 | HCP Terraform Workspaces and Runs |
| 5-4 | 25–33 | Policy as Code: Terraform Policy / Sentinel / OPA |
| 5-5 | 33–40 | Drift Detection and Continuous Compliance |
| 5-6 | 40–47 | Cost Estimation and Tag Governance |
| 5-7 | 47–54 | Stacks and Multi-Deployment Orchestration |
| 5-8 | 54–60 | Recap of the First Five Hours, Self-Check and Cleanup |
| Hour 6 · Infrastructure Architecture in Practice (Open) | ||
| 6-0 | Pre-class | Preparation: Sample Repository Structure |
| 6-1 | 00–07 | Repository and Environment Layout |
| 6-2 | 07–16 | Module Composition and Interface Design |
| 6-3 | 16–24 | State Splitting and Cross-Stack References |
| 6-4 | 24–32 | Multi-Region and Multi-Account/Subscription |
| 6-5 | 32–40 | Secrets: Ephemeral Resources and Write-Only Arguments |
| 6-6 | 40–47 | Zero-Downtime Changes and Blue/Green |
| 6-7 | 47–54 | Importing Existing Resources and Migration |
| 6-8 | 54–60 | Comprehensive Architecture Review |
| Hour 7 · Deep Troubleshooting, Optimization and Advanced Topics (Open) | ||
| 7-0 | Pre-class | Preparation: Fault-Injection Repository |
| 7-1 | 00–06 | Troubleshooting Methodology and TF_LOG |
| 7-2 | 06–15 | State Surgery: mv, rm, pull, push |
| 7-3 | 15–23 | Dependency Cycles, Unknown Values and Plan Failures |
| 7-4 | 23–30 | Provider Issues and API Rate Limiting |
| 7-5 | 30–38 | Performance: parallelism, refresh and Large Stacks |
| 7-6 | 38–45 | Upgrading Terraform and Providers |
| 7-7 | 45–52 | Customization: External Data, Provider Development Basics |
| 7-8 | 52–60 | Mixed-Fault Blind Box |
| Hour 8 (Optional) · 50 Production Issues + 50 Interview Questions (Open) | ||
| 8-0 | Pre-class | Instructions and Fault-Lab Environment |
| 8-1 | 00–08 | A · State and Backend (Questions 1–12) |
| 8-2 | 08–16 | A · Plan/Apply and Dependencies (13–25) |
| 8-3 | 16–24 | A · Providers, Authentication and Cloud APIs (26–38) |
| 8-4 | 24–30 | A · Modules, Versions, CI/CD and Drift (39–50) |
| 8-5 | 30–37 | B · Core Concepts and Architecture (Interview 1–13) |
| 8-6 | 37–44 | B · State, Modules and HCL (14–25) |
| 8-7 | 44–52 | B · Multi-Environment, CI/CD and Governance (26–38) |
| 8-8 | 52–60 | B · Security, Cloud Practice and Scenario Design (39–50) |
Pages for each module
Hours 1–7: principles (What / Why / How / When) · diagrams · animations · commands · labs · production cases · troubleshooting · quizzes · narration audio · videos. Hour 8: the production-issues part is Overview · Issue Details · Diagrams · Animation · Reproduction Lab · Quiz · Audio · Video; the interview part is Overview · Interview Question Details · Diagrams · Mock Interview · Scenario Questions · Quiz · Audio · Video. Each lesson ends with a cheat sheet, a combined lab, a final quiz, and a sources and version notes page.
Lab environment
- Workstation: Ubuntu 24.04 (Azure VM or local machine) with Docker Engine 29 installed (reusing the Docker course)
- Hours 1, 2, 6 and 7: free local labs using the
kreuzwerker/docker,random,localprovider, with remote state simulated by a MinIO container as S3 - Hour 3 Azure (
canadacentral), Hour 4 AWS (ca-central-1): deploy the same myapp; each lesson states cost estimates andterraform destroycleanup - Hour 5: GitHub Actions + OIDC (Azure federated credentials / AWS IAM OIDC provider), HCP Terraform
Animations and narration: Animations are implemented with inline SVG and JavaScript and play offline; the narration pages use the browser's built-in Web Speech API (en-US) to read the lecture script aloud.
Limitations: Lab commands are written from the official documentation and have not been run step by step in a real environment; IDs, IPs and times in the expected output are sample values. The generation environment cannot produce videos or MP3 files, so the video pages only list verified public videos and include storyboard scripts. Details that cannot be verified are noted on each lesson's “Sources and Version Notes” page.
Next course: Ansible 8-Hour Interactive Crash Course: Terraform creates the infrastructure, and Ansible handles configuration and deployment.
Next course: Ansible 8 Hours →