FahamLah

Level Up · Part 2 · Pelan Arkitek

Terraform & OpenTofu map

The architect's blueprint. Draw the plan first, then build exactly that.

Every world is open. T1 to T3 build on each other. Lessons use OpenTofu. Terraform uses the same language.

Tip: best after Git & GitHub, World 4. Not a lock. Start any time.

Tip: best after CI/CD, World C1. Not a lock. Start any time.

World T1

Blueprints

Why write it down. The loop: init, plan, apply, destroy.

8 lessons · 0 of 8 done

8 lessons
  1. Clicking vs writing it down3 min
  2. HCL blocks4 min
  3. Providers and init4 min
  4. Read a plan: + ~ - -/+5 min
  5. apply and destroy4 min
  6. State: the building's register4 min
  7. fmt and validate3 min
  8. Terraform or OpenTofu?4 min
  9. Boss challenge: Build a tiny food court

World T2

Inputs & Outputs

Variables, outputs and loops. One blueprint, many buildings.

8 lessons · 0 of 8 done

8 lessons
  1. Variables and types4 min
  2. tfvars files3 min
  3. Outputs3 min
  4. Locals: names for repeats3 min
  5. count: many of the same4 min
  6. for_each: one per item5 min
  7. Data sources: read what exists4 min
  8. Expressions and functions5 min
  9. Boss challenge: Three stalls from one list

World T3

State & Teams

Share state safely. Fix drift. Refactor without rebuilding.

8 lessons · 0 of 8 done

8 lessons
  1. Remote state backends4 min
  2. Locking: one builder at a time3 min
  3. Drift: someone clicked4 min
  4. import blocks4 min
  5. moved blocks and refactors4 min
  6. state list, show and rm4 min
  7. Sensitive values and secrets in state4 min
  8. Workspaces or folders per environment?4 min
  9. Boss challenge: Someone clicked

World T4

Modules & Pipelines

Capstone mission 8 comes after this world

Reuse blueprints as modules. Plan every change in a pull request.

8 lessons · 0 of 9 done

8 lessons
  1. Modules: a stall you can reuse5 min
  2. Module sources and version pins4 min
  3. Provider pins and the lock file4 min
  4. A plan on every pull request5 min
  5. Policy checks4 min
  6. Cost checks3 min
  7. Secrets and OIDC4 min
  8. When not to use IaC3 min
  9. Capstone mission 8: Blueprint Kedai KancilMission 85 min
  10. Boss challenge: Review the blueprint