When using parent/child modules to deploy infrastructure, how would you export a value from one module to import into another module. For example, a module dynamically deploys an application instance or virtual machine, and you need the IP address in another module to configure a related DNS record in order to reach the newly deployed application.
A. Configure an output value in the application module in order to use that value for the DNS module
B. Preconfigure the IP address as a parameter in the DNS module
C. Configure the pertinent provider’s configuration with a list of possible IP addresses to use
D. Export the value using terraform export and input the value using terraform input
Answer:A
When using parent/child modules to deploy infrastructure, how would you export a value from one module to import into another module. For example, a module dynamically deploys an application instance or virtual machine, and you need the IP address in another module to configure a related DNS record in order to reach the newly deployed application.
A. Configure an output value in the application module in order to use that value for the DNS module B. Preconfigure the IP address as a parameter in the DNS module C. Configure the pertinent provider’s configuration with a list of possible IP addresses to use D. Export the value using terraform export and input the value using terraform input