Laptop to Production
Module 09

Infrastructure as code

Terraform from your first resource to a whole platform in two regions.

QuickCart: Opening in a second country took a week of clicking. Next time: one command.

Lessons in this module

  1. Why TerraformWhat goes wrong when infrastructure lives in people's heads.
    ReadyDone
  2. Your first resourceProviders, plan, apply, destroy — and reading a plan.
    ReadyDone
  3. Variables, locals and outputsOne set of code for every environment.
    ReadyDone
  4. Loops and lifecyclefor_each, count's trap, and protecting what matters.
    ReadyDone
  5. ModulesReusable pieces, and where your standards live.
    ReadyDone
  6. Terraform stateHow Terraform remembers — and keeping that memory safe.
    ReadyDone
  7. Environments and regionsdev, stg and a second region by changing variables.
    ReadyDone
  8. Operating TerraformDrift, import, moved blocks and recovering from mistakes.
    ReadyDone

Put this module to work in Project 4: Everything as code.

Next module: 10 – Automation