local name
The short name you give a provider inside one configuration, used as the prefix of resource types and in provider blocks.
In more detail
In required_providers the key on the left, such as local or aws, is the local name. Resource types start with it followed by an underscore, as in local_file, which is how Terraform knows which provider to ask. It usually matches the last part of the source address.
Related terms
- required_providers — The block inside the terraform block that lists each provider a configuration needs, where to download it from and which versions are acceptable.
- source address — The global name of a provider or module, such as hashicorp/local, made of a namespace and a name (and a registry host, usually left out).
- resource type — The first label of a resource block, such as local_file or aws_vpc, naming the kind of thing to create.
Taught in
- Providers And The required_providers Block — Infrastructure as Code with Terraform
- Writing Your First Configuration In HCL — Infrastructure as Code with Terraform
- Providers: How Terraform Reaches Every API — HashiCorp Terraform Associate (004) Exam Prep