Terraform Roadmap 2026
Provision infrastructure as code: HCL, providers, state, modules, workspaces, testing and team workflows.
4 stages · 8 units · Intermediate · about 50 hours · Last reviewed 19 November 2026
What is a terraform?
Terraform is an infrastructure as code tool from HashiCorp that lets you describe cloud and on-premise resources in declarative HCL files and create, change or destroy them with a repeatable workflow. It uses providers to talk to platforms such as AWS, Azure and Google Cloud, and keeps a state file that maps your configuration to real resources.
Step-by-step terraform roadmap
- 1
Terraform Basics
Beginner · about 17 hours
Declare infrastructure.
- Core Workflow
The Terraform core workflow is the loop of writing configuration, running terraform init, terraform plan and terraform apply, and removing resources with terraform destroy. Configuration is written in HCL, using blocks for providers, resources, variables and outputs. This workflow is the base for infrastructure as code, since changes become reviewable text instead of manual clicks.
- Expressions
Terraform expressions are how HCL computes values and makes configuration dynamic. They include references, conditionals, for expressions, built-in functions and templates. Meta-arguments such as count and for_each create several resources from one block, and dynamic blocks generate nested settings, so a single configuration can adapt to inputs without copy and paste.
- Core Workflow
- 2
State
Intermediate · about 12 hours
Source of truth.
- State Management
Terraform state is the file that records which real resources correspond to your configuration, and it is how Terraform knows what to change. Local state is fine for learning, but teams use remote backends with locking, such as S3 with DynamoDB or similar services. State operations like import, mv and rm adjust that record carefully when resources are renamed or adopted.
- Environments
Environments in Terraform deal with running the same infrastructure code for dev, staging and production. Two common approaches are workspaces, which keep multiple state files for one configuration, and separate directories or repositories per environment with shared modules. Choosing a layout affects blast radius, access control and how much duplication you accept.
- State Management
- 3
Modules and Reuse
Intermediate · about 12 hours
Scale up.
- Modules
Terraform modules are reusable packages of configuration that group resources behind input variables and outputs. A root module calls child modules from a local path, a Git repository or the Terraform Registry. Providers, such as the AWS provider, are plugins that implement the resources, and their versions are pinned. Modules and providers let teams build infrastructure from tested components.
- Quality
Quality in Terraform means catching mistakes before they reach real infrastructure. Basic checks include terraform fmt and validate, linting with tools such as TFLint, and policy or security scanning with tools like Checkov or Trivy. Terraform also has a native test framework using terraform test, and teams may use Terratest for integration tests that deploy and then verify real resources.
- Modules
- 4
Teams and Operations
Advanced
Collaborate.
- Delivery
Delivery for Terraform is how infrastructure changes move through CI/CD safely. A typical pipeline runs format, validate and security checks on a pull request, posts the plan for review, and applies the approved plan after merge. Credentials come from short-lived identities rather than stored keys, and apply steps are serialised to protect state.
- Platform
The platform side of Terraform covers managed services and alternatives for running it at team scale. HCP Terraform, formerly Terraform Cloud, offers remote runs, state storage, access control, policy checks and a private module registry. Alternatives and related tools include OpenTofu, an open source fork, and other systems like Pulumi, so engineers can compare trade-offs.
- Delivery
Frequently asked questions
Ready to practise for interviews?
Practise terraform questions with an AI mock interviewer and get feedback on your answers.