Introduction
Terraform uses modules to organize infrastructure code. The root module is the main folder where you run Terraform commands. It controls what resources get created and how.
When you start a new Terraform project and want to define your infrastructure in one place.
When you want to organize your cloud resources like servers, networks, and storage together.
When you want to apply changes to your infrastructure by running Terraform commands in a single directory.
When you want to call other modules from your main configuration to keep code clean.
When you want to manage your infrastructure lifecycle with Terraform safely and predictably.