Introduction
Terraform uses blocks to organize configuration into sections. Each block defines a resource, variable, or other settings to build infrastructure step-by-step.
When you want to create a virtual machine in the cloud with specific settings.
When you need to define a network with subnets and security rules.
When you want to set variables to reuse values across your infrastructure.
When you want to group related settings like provider details or outputs.
When you want to organize your infrastructure code clearly and logically.