resource type
The first label of a resource block, such as local_file or aws_vpc, naming the kind of thing to create.
In more detail
The part before the first underscore is the provider's local name, which tells Terraform which plugin handles it. The provider decides which types exist and which arguments each accepts.
Related terms
- Terraform resource — A resource block, which asks Terraform to create and manage one piece of infrastructure such as a network, file or database.
- local name — The short name you give a provider inside one configuration, used as the prefix of resource types and in provider blocks.
- provider — A plugin that teaches Terraform how to talk to one API, such as AWS or your local disk, and which resource types it offers.
Taught in
- What Is Infrastructure As Code? — Infrastructure as Code with Terraform
- Providers And The required_providers Block — Infrastructure as Code with Terraform
- Writing Your First Configuration In HCL — Infrastructure as Code with Terraform
- The Plan That Wanted To Destroy Production — HashiCorp Terraform Associate (004) Exam Prep
- Providers: How Terraform Reaches Every API — HashiCorp Terraform Associate (004) Exam Prep
- Importing What Terraform Did Not Build — HashiCorp Terraform Associate (004) Exam Prep