Terraform Learning Path π#
Your complete guide from zero to production-grade Terraform with AWS, designed to help you ace the Terraform Associate certification.
π Curriculum Overview#
This curriculum is structured into 17 comprehensive chapters + hands-on labs + example projects. Each chapter builds on the previous, taking you from fundamentals to production-grade infrastructure-as-code.
πΊοΈ Learning Path#
| Phase | Chapters | Goal | Duration |
|---|---|---|---|
| Foundation | 1β4 | Understand IaC concepts, Terraform CLI, HCL syntax | Week 1 |
| Core Skills | 5β8 | Variables, state management, modules, workspaces | Week 2 |
| Advanced | 9β12 | Functions, provisioners, Cloud, import/refactor | Week 3 |
| Production & Exam Prep | 13β17 | Security, production patterns, exam practice, interviews, scenarios | Week 4+ |
π Chapter Index#
| # | Chapter | Topics |
|---|---|---|
| 01 | Introduction to IaC & Terraform | What is IaC, Terraform vs other tools, installation, HCL vs JSON |
| 02 | Terraform Core Concepts | Providers, tfstate, lifecycle, plan/apply/destroy |
| 03 | HCL Configuration Language | Syntax, expressions, types, functions, interpolation |
| 04 | Resources, Data Sources & Meta-Arguments | Resources, data sources, depends_on, count, for_each, lifecycle |
| 05 | Variables, Outputs & Locals | Input variables, output values, local values, validation, sensitive |
| 06 | State Management | Local state, remote state (S3+DynamoDB), state locking, workspaces |
| 07 | Terraform Modules | Module structure, inputs/outputs, versioning, registry, private modules |
| 08 | Workspaces & Environments | CLI workspaces, directory layouts, terragrunt alternatives |
| 09 | Functions, Expressions & Dynamic Blocks | Built-in functions, conditionals, for expressions, splat, dynamic blocks |
| 10 | Provisioners & Side Effects | file, remote-exec, local-exec, when to avoid, alternatives |
| 11 | Terraform Cloud & Enterprise | Remote execution, VCS integration, Sentinel, runs, workspaces |
| 12 | Importing & Refactoring | terraform import, moved blocks, state mv/rm, refactoring modules |
| 13 | Security & Compliance | Sensitive data, secrets management, Sentinel policies, least privilege |
| 14 | Production-Grade Terraform | CI/CD, monorepo vs multi-repo, testing, code reviews, team workflows |
| 15 | Exam Preparation Guide | Exam structure, objectives, sample questions, study tips, cheat sheet |
| 16 | Interview Questions & Answers | 50+ categorized interview questions with detailed answers |
| 17 | Real-World Scenarios | 12 practical troubleshooting & design scenarios |
π οΈ Hands-On Labs#
| Lab | Description |
|---|---|
| Lab 01 | Deploy an EC2 instance with security group |
| Lab 02 | Create a VPC with public/private subnets |
| Lab 03 | Build a reusable VPC module |
| Lab 04 | Multi-environment deployment with workspaces |
| Lab 05 | Remote state with S3 and DynamoDB |
| Lab 06 | Production-ready 3-tier web architecture |
π Example Projects#
| Example | Description |
|---|---|
| Basic EC2 | Simple EC2 instance with security group |
| VPC Module | Reusable VPC module with subnets |
| Multi-Tier App | 3-tier web app with ALB, ASG, RDS |
| Production Ready | Full production setup with remote state, CI/CD |
| Serverless API | REST API with Lambda + API Gateway + DynamoDB |
| ECS Fargate | Containerized app with ECS Fargate and auto-scaling |
| EKS Cluster | Managed Kubernetes cluster with node groups |
| S3 + CloudFront | Static website with CDN, WAF, and custom domain |
π― What You’ll Achieve#
By the end of this curriculum, you will be able to:
- β Write production-grade Terraform configurations following industry best practices
- β Design reusable modules with proper inputs, outputs, and versioning
- β Manage Terraform state securely with remote backends and locking
- β Implement multi-environment deployments (dev/staging/prod) with workspaces
- β Pass the Terraform Associate certification exam with confidence
- β Integrate Terraform into CI/CD pipelines for automated infrastructure delivery
- β Apply security best practices including secrets management and policy as code
π Getting Started#
- Install Terraform
- Set up AWS CLI:
aws configure - Start with Chapter 1 and follow sequentially
- Complete the hands-on labs after each section
- Review the exam preparation guide in Chapter 15
Pro Tip: Don’t just read β code along! Run every example, break things, fix them, and experiment. Real learning comes from doing.
Start your journey β Chapter 1: Introduction to IaC & Terraform