Overview - Why resources are Terraform's core
What is it?
In Terraform, resources are the building blocks that define the infrastructure you want to create or manage. Each resource represents a piece of your cloud or on-premises environment, like a server, database, or network. Terraform uses these resource definitions to understand what to create, update, or delete. Without resources, Terraform would have no way to know what infrastructure to control.
Why it matters
Resources exist because managing infrastructure manually is slow, error-prone, and inconsistent. Terraform resources let you describe your infrastructure in code, making it repeatable and reliable. Without resources, you would have to configure everything by hand, risking mistakes and wasting time. Resources enable automation, version control, and collaboration, which are essential for modern cloud operations.
Where it fits
Before learning about resources, you should understand basic Terraform concepts like providers and configuration files. After mastering resources, you will learn about modules, state management, and how Terraform plans and applies changes. Resources are the foundation that connects your code to real infrastructure.