World map

 

BM: Baca dalam Bahasa Melayu

World T4: Modules & Pipelines · Boss challenge

Review the blueprint

You will learn: to review a refactor into a module, fix the pins, and catch a risky plan on a pull request, on your own.

Checked with OpenTofu 1.13 on 1 Nov 2026

The problem

Boss: you are the reviewer today. Ben’s pull request says “Tidy: move the stalls into a module”. Its plan: 2 to add, 2 to destroy. Do you approve?

Pick one answer.

Try it

Fix it yourself. Run tofu init for the new module, then add two moved blocks. The plan must say 0 to destroy. Then apply.

Blueprint (your .tf files)init done

  • module.nasi.local_file.signnot built yet
  • module.mee.local_file.signnot built yet

Built (the state file)state #1

  • local_file.mee
  • local_file.nasi
Blueprint: 2 resources. Built: 2.

Change a file, then run tofu plan to see what it means.

Check

Ben’s pins. Swipe: good, or needs work?

Swipe right for good, left for needs work. Or use the buttons.

1 / 4

required_providers: null with version = "~> 3.2"

required_providers: null with version = "~> 3.2"

Try it

Ben added a bell that needs the null provider, but CI fails. Find out why, fix it, then apply.

Blueprint (your .tf files)init done

  • local_file.menu
  • null_resource.bellnot built yet
  • random_pet.stall

Built (the state file)state #1

  • local_file.menu
  • random_pet.stall
Blueprint: 3 resources. Built: 2.

Change a file, then run tofu plan to see what it means.

Check

Ben also wrote the plan workflow. Find the three holes.

Tap every risky line. Each one shows the attack and the fix.

Workflow file .github/workflows/plan.yml

Check

Last pull request of the day. Read the plan comment. Then choose.

Practice repo — not a real website
kedai-kancil / blueprint
Clean up old stall code #12
Open ben wants to merge cleanup into main
  1. ben

    Removes code we do not use any more.

  2. plan-bot

    Plan for this pull request:

    # module.mee.local_file.sign will be destroyed
    # module.nasi.local_file.sign will be destroyed
    Plan: 0 to add, 0 to change, 2 to destroy.
Checks
  • Passed tofu plan
How to merge
Merging is blocked
  • This branch needs one approving review first.
Your review

You did it!

You can now review infrastructure changes like a pro: modules, pins, pipelines and plans.