When I run terraform apply (but not terraform validate) I get the following error,

Error: Invalid provider configuration

Provider "registry.terraform.io/terraform-provider-openstack/openstack" requires explicit configuration. Add a provider block to the root module and configure the provider's required arguments as described in the provider documentation.

Immediately followed by,

Error: One of auth_url or cloud must be specified

 with provider["registry.terraform.io/terraform-provider-openstack/openstack"],
 on <empty> line 0:
   (source code not available)

How can I resolve this problem?

1 Answer 1


The problem I had to generate this was my provider had an alias,

provider "openstack" {
  alias       = "acmecorp"
  tenant_name = "admin"
  cloud       = "openstack"

That alias caused this problem, and removing it resolved the error. But looking at the specific terraform-provider-openstack/openstack provider documentation alias isn't mentioned. I pulled the alias convention from AWS and it seems to not be supported with OpenStack.

I opened #1480 for a better error message

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.