Interview Prep/Terraform/Providers, Resources and Data Sources

Where does `hashicorp/aws` come from in `required_providers`?

BeginnerConceptProviders, Resources and Data Sources
Answer

The source address format is [hostname/]namespace/type. If you omit the hostname Terraform uses registry.terraform.io, so hashicorp/aws means registry.terraform.io/hashicorp/aws. Third-party providers use their own namespace, for example integrations/github or cloudflare/cloudflare. In OpenTofu the default host is registry.opentofu.org.

All Terraform questions Roadmap: Terraform

More on Providers, Resources and Data Sources