Terraform foundations
State, modules, workspaces, linting posture — infra-as-code for app teams.
Lesson outline
-
25
Pass Variables Between Modules
Learn how to pass variables between modules in Terraform — a clear guide with examples to connect your infrastructure modules.
-
26
Terraform foundations — Part 013
Placeholder slot — edit in console (terraform-iac-stub-013).
-
27
Use locals for cleaner expressions
Learn use locals for cleaner expressions in this Terraform foundations tutorial — hands-on steps, troubleshooting, and what to study next.
-
28
Terraform foundations — Part 014
Placeholder slot — edit in console (terraform-iac-stub-014).
-
29
Terraform Workspaces for Environments
Manage multiple environments with Terraform workspaces. Learn how to create, switch, and use workspaces to isolate state and variables for dev, staging, and production.
-
30
Terraform foundations — Part 015
Placeholder slot — edit in console (terraform-iac-stub-015).
-
31
Pin Provider Versions
Pin provider versions for stability in Terraform to avoid unexpected changes. This lesson explains why version pinning matters, how to pin providers, and what to do when versions conflict.
-
32
Terraform foundations — Part 016
Placeholder slot — edit in console (terraform-iac-stub-016).
-
33
Dynamic Blocks in Terraform
Learn how to use dynamic blocks in Terraform to generate repeated nested blocks from collections, reducing duplication and keeping your code clean. This lesson explains the problem dynamic blocks solve, the core concept and mental model, step-by-step syntax, and a hands-on walkthrough. It compares dynamic blocks with a
-
34
Terraform foundations — Part 017
Placeholder slot — edit in console (terraform-iac-stub-017).
-
35
Sensitive Data in Terraform
Handle sensitive data with variables in Terraform — learn to mark variables as sensitive, protect secrets in state and logs, and apply best practices for secure infrastructure-as-code.
-
36
Terraform foundations — Part 018
Placeholder slot — edit in console (terraform-iac-stub-018).
Terraform foundations — step-by-step tutorials
What you will find here
This track walks through terraform foundations in order — each lesson is server-rendered HTML you can read without JavaScript. Follow the outline, then practice in the browser IDE when a lesson links to runnable code.
Tutorials vs quizzes and code samples
Tutorials teach in sequence. For quick checks use quizzes. For copy-paste snippets see code samples. For deeper reading browse articles.