โ Terraform Associate Exam Practice learning pathTerraform Associate Exam Practice ยท Module 6 of 10
Modules
Reusable building blocks.
๐ Key ideas
- A module is a folder of Terraform files; every configuration has a root module.
- Call modules with module blocks and a source (local path, registry, Git).
- Modules take input variables and expose outputs.
- The public Terraform Registry hosts community and verified modules; pin module versions.
- Good modules are small, focused and documented.
๐ก Real-life example: Like LEGO kits: build standard parts once and reuse them in many models.
Root moduleMain working directory configuration
Child moduleModule called by another module
Module sourceWhere module code comes from
Terraform RegistryPublic catalogue of providers and modules