Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider invalid for bless module: "Failed to query available provider packages" #437

Open
queglay opened this issue Nov 14, 2022 · 0 comments

Comments

@queglay
Copy link

queglay commented Nov 14, 2022

Thanks for running this project.
When getting started today for the first time with the provided example, and defining the provider like so:

terraform {
  required_providers {
    bless = {
      source = "registry.terraform.io/chanzuckerberg/bless"
      version = "~> 0.5"
    }
  }
  required_version = ">= 0.13"
}

I get an error on terraform init:

│ Error: Failed to query available provider packages
│ 
│ Could not retrieve the list of available versions for provider hashicorp/bless: provider registry registry.terraform.io does not have a provider
│ named registry.terraform.io/hashicorp/bless
│ 
│ Did you intend to use chanzuckerberg/bless? If so, you must specify that source address in each module which requires that provider. To see
│ which modules are currently depending on hashicorp/bless, run the following command:
│     terraform providers
╵

It appears the bless module is pointing at an incorrect url for the intended provider:

Providers required by configuration:
.
├── provider[registry.terraform.io/chanzuckerberg/bless] ~> 0.5
├── provider[registry.terraform.io/hashicorp/null] ~> 3.0
├── provider[registry.terraform.io/hashicorp/aws]
└── module.bless
    ├── provider[registry.terraform.io/hashicorp/random]
    ├── provider[registry.terraform.io/hashicorp/bless]
    ├── provider[registry.terraform.io/hashicorp/aws]
    ├── module.lambda
    │   └── provider[registry.terraform.io/hashicorp/aws] >= 3.0.0
    └── module.logs_policy
        └── provider[registry.terraform.io/hashicorp/aws]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant