Overview - Resource types and names
What is it?
In Terraform, resources are the building blocks that define the infrastructure you want to create or manage. Each resource has a type that specifies what kind of infrastructure it represents, like a virtual machine or a storage bucket. Resources also have names that uniquely identify them within your configuration. Together, resource types and names tell Terraform exactly what to create and how to keep track of it.
Why it matters
Without clear resource types and names, Terraform wouldn't know what infrastructure to build or how to manage changes over time. This would make it impossible to automate infrastructure reliably, leading to errors, confusion, and wasted time. Proper resource types and names ensure your infrastructure is organized, predictable, and easy to update.
Where it fits
Before learning resource types and names, you should understand basic Terraform concepts like providers and configuration files. After this, you will learn about resource arguments, dependencies, and how to use modules to organize resources better.