Introduction
When you create infrastructure with Terraform, you define resources. Each resource has a type and a name. The type tells Terraform what kind of thing to create, like a server or a database. The name is how you refer to that resource in your code.
When you want to create a virtual machine in the cloud.
When you need to set up a storage bucket for your files.
When you want to manage a database instance alongside your app.
When you need to create a network or firewall rule.
When you want to organize your infrastructure code clearly.