Seems since this was written terraform now requires you to define the ‘source’ of providers used.
If you get the following errors when running terraform init
…
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/docker: provider registry registry.terraform.io does
│ not have a provider named registry.terraform.io/hashicorp/docker
│
│ Did you intend to use kreuzwerker/docker? If so, you must specify that source address in each module which requires that
│ provider. To see which modules are currently depending on hashicorp/docker, run the following command:
│ terraform providers
╵
╷
│ 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 registry.terraform.io/hashicorp/auth0
│
│ Did you intend to use alexkappa/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
╵
… add the following to main.tf
terraform {
required_providers {
docker = {
source = "kreuzwerker/docker"
}
auth0 = {
source = "alexkappa/auth0"
}
}
}