TERRAFORM-ASSOCIATE-004 · Question #144
Module variable assignments are inherited from the parent module and you do not need to explicitly set them.
The correct answer is B. False. False. Module variables are NOT automatically inherited from the parent module. Terraform treats each module as an isolated unit with its own scope. To pass values into a child module, you must explicitly declare input variables in the child module using 'variable' blocks, and th
Question
Options
- ATrue
- BFalse
How the community answered
(27 responses)- A11% (3)
- B89% (24)
Explanation
False. Module variables are NOT automatically inherited from the parent module. Terraform treats each module as an isolated unit with its own scope. To pass values into a child module, you must explicitly declare input variables in the child module using 'variable' blocks, and then explicitly assign those values in the parent module's 'module' block. Nothing is implicitly passed down - every value the child module needs must be provided explicitly.
Topics
Community Discussion
No community discussion yet for this question.