Terraform learning roadmap
This track is organized to help you learn Terraform in a practical order: start with why infrastructure as code matters, get comfortable with Terraform syntax and workflow, then move into local providers, cloud provisioning, reusable modules, and Kubernetes-oriented platform automation.
Phase 1: Foundations and Terraform workflow
- Start with why Terraform exists and how it fixes manual, click-driven infrastructure work.
- Learn the core Terraform workflow:
init,plan,apply, anddestroy. - Understand providers, resources, variables, outputs, state, backends, and modules before building larger configurations.
- Treat Terraform as code that should be versioned, reviewed, validated, and scanned just like application code.
Phase 2: Fast feedback with local infrastructure
- Use the Docker provider to see Terraform create something real with minimal setup.
- Practice the workflow on a local container before introducing cloud credentials, networking, or billing.
- Focus on reading plans and understanding how resource blocks map to actual infrastructure objects.
Phase 3: Cloud provisioning on GCP and Azure
- Move from local experiments to real cloud resources.
- Start with a simple GCP VM example so provider configuration, compute resources, and startup scripts feel concrete.
- Review the Azure VM example to understand networking, public IPs, security groups, and machine provisioning in a second cloud.
- Compare how the same Terraform patterns show up across providers even though the resource types differ.
Phase 4: Reuse, modules, and multi-cloud structure
- Learn how modules help you split Terraform into reusable building blocks.
- Review the modular GCP VM example to see how root modules and child modules work together.
- Study the multi-cloud example to understand one root configuration orchestrating provider-specific modules.
- Treat this phase as the bridge from tutorials to maintainable team-scale Terraform codebases.
Phase 5: Kubernetes and platform automation
- Learn how Terraform can manage Kubernetes resources through the Kubernetes provider.
- Use the Minikube example to connect Terraform concepts to namespaces, deployments, and services.
- Finish with an AKS provisioning example so you can see Terraform manage both cluster infrastructure and platform building blocks.
- Understand where Terraform fits well in platform workflows and where Kubernetes-native tools still complement it.
How to use this track
- Read the section overview lessons first, then inspect the
.tffiles they reference. - Run
terraform fmt,terraform validate, andterraform planas you work through examples. - Keep credentials and state management in mind when adapting these examples to real environments.
- Add future topics by dropping markdown lessons or code examples into the correct numbered section so the roadmap stays intentional.