StudyToCert

All certifications / Terraform Associate / Lessons

HashiCorp Certified: Terraform Associate Terraform Associate (004) · Domain 5: Terraform modules

Variable scope: child modules only see values passed in; outputs are read as `module.NAME.OUTPUT`

▶ Watch the overview video

Last reviewed September 25, 2026 · Leer en español

Modules are sealed boxes. A child module cannot see the variables, locals, resources or data sources of the module that calls it, and the caller cannot reach inside the child to read its resources directly. The only way in is through input variables, and the only way out is through outputs. This strict scoping is what makes a module predictable and reusable, because its behavior depends only on the values it is given.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 5 more sections, 4 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Terraform Associate for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Terraform Associate study plan