Question 150
A root configuration provisions a network through one child module and an application through another; the application needs the network ID. Which Terraform concept most directly explains the appropriate approach?
Explanation
Correct Answer
Pass the first module's exported network output to the second module's input. The application module receives the computed network ID through an explicit interface.
Incorrect Answers
Pin an appropriate registry module version constraint in the module block. The application module receives the computed network ID through an explicit interface.
Reference the local path in the module source argument. Pass the first module's exported network output to the second module's input.
Declare the child input with its default and override through the module block's tag argument. The application module receives the computed network ID through an explicit interface.