Interview Prep/Terraform/IaC and Terraform Fundamentals

What is the difference between a root module and a child module?

IntermediateConceptIaC and Terraform Fundamentals
Answer

The root module is the directory where you run Terraform commands. Every other module is a child, called with a module block from the root or from another module. A module is just a folder of .tf files. Only the root can configure backends and, ideally, providers; children receive providers from the caller.

All Terraform questions Roadmap: Terraform

More on IaC and Terraform Fundamentals