|
Answer» The steps to make an object from one module available to the other module at a high LEVEL are as follows: - The first step is to define an output variable in a resource configuration. The scope of local and to a module will not be declared until you define resource configuration details.
- Now you must specify the output variable of module A so that it can be utilised in the setup of other modules. You should establish a fresh new and up-to-date key name, with a VALUE that is equal to the output variable of module A.
- You must now create a file named variable.tf for module B. Create an input variable with the EXACT same name as the key you defined in module B inside this file. This variable permits the resource's DYNAMIC setting in a module. Replicate the process to make this variable available to other modules as well. This is because the scope of the variable ESTABLISHED here is limited to module B.
|