Having managed to auto generate tf files from my existing auth0 tenant, I now want to try using terraform to update an email template. However, ‘terraform init’ produces an error that indicates the auth0 provider was not referenced properly whereby it thinks it was referenced like so ‘hashicorp/auth0’ when in actuality, it was referenced correctly like ‘auth0/auth0’. Deleting the lock and state files did not resolve this so both were regenerated with another ‘terraform apply’. The exact output I got was ‘$ terraform init
Initializing the backend…
Initializing modules…
Initializing provider plugins…
- Finding latest version of hashicorp/auth0…
- Reusing previous version of auth0/auth0 from the dependency lock file
- Using previously-installed auth0/auth0 v1.41.0
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/auth0: provider registry registry.terraform.io does not have a provider named
│ Terraform Registry
│
│ Did you intend to use auth0/auth0? If so, you must specify that source address in each module which requires that provider. To see which modules are currently depending on
│ hashicorp/auth0, run the following command:
│ terraform providers
╵‘ and I promise I DID reference the source correctly. The opening line of my ‘auth0_main.tf’ file is ‘terraform {
required_version = “>= 1.5.0”
required_providers {
auth0 = {
source = “auth0/auth0”
version = “>= 1.0.0”
}
}‘