Question 5 of 10Pro Only
What are Terraform modules, and how do they promote code reuse? Explain the difference between root modules, child modules, and published modules.
Sample answer preview
Terraform modules are containers for multiple resources that are used together. A module is simply a directory containing Terraform configuration files. Modules allow you to organize your infrastructure code, promote reuse, and encapsulate complexity.
moduleroot modulechild moduleTerraform Registrymodule sourceinput variables