Module 5 of 8
Terraform Modules
Learning objectives
| ID | You will be able to… |
|---|---|
| 5a | Identify every module source type, write correct source strings (including subdirectories and Git refs), and explain how modules are installed. |
| 5b | Explain root vs. child module scope and pass data in through input variables and out through outputs. |
| 5c | Call modules with arguments and the count, for_each, providers, and depends_on meta-arguments, and refactor existing resources into a module without destroying them. |
| 5d | Constrain module versions, explain which sources support version, and upgrade modules safely. |
In this module
- Lesson 5.1: How Terraform Sources Modules (5a)
- Lesson 5.2: Variable Scope Within Modules (5b)
- Lesson 5.3: Using Modules in Configuration (5c)
- Lesson 5.4: Managing Module Versions (5d)
- Lab 5: Build, Refactor, Publish, and Version a Module (35 min)
- Knowledge Check 5 (10 questions)
- Cheat Sheet 5: Terraform Modules