Study HashiCorp Terraform 003 Module Sources: key concepts, common traps, and exam decision cues.
This lesson matters because module questions are usually interface questions in disguise. You need to know where the module comes from, what inputs it expects, and what outputs it exposes.
| If the question is mostly about… | Strongest first fit |
|---|---|
| where reusable code is loaded from | module source |
| what values a module needs | input variables |
| what values a module exposes | outputs |
| Trap | Better rule |
|---|---|
| treating a module like a workspace | modules are reuse units, workspaces are state instances |
| ignoring the module interface | inputs and outputs define the contract |
| using modules as raw copy-paste containers | the value is structured reuse |