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

A way for the registry redirect the url corresponding to a fully qualified provider name #35746

Closed
KloudGeek opened this issue Sep 18, 2024 · 4 comments
Labels
enhancement new new issue not yet triaged registry

Comments

@KloudGeek
Copy link

Terraform Version

Terraform v1.9.5
on windows_amd64
+ provider registry.terraform.io/hashicorp/azuread v2.53.1
+ provider registry.terraform.io/hashicorp/azurerm v4.2.0

Terraform Configuration Files

Note: no particular configuration example other than the fact that the provider block accidentally omitted.

Debug Output

No debug output available.

Expected Behavior

The URL shown in 'Actual Behavior' should be:
"registry.terraform.io/**providers/**hashicorp/azurerm"
and not "registry.terraform.io/hashicorp/azurerm"

Actual Behavior

Planning failed. Terraform encountered an error while generating this plan.


│ Error: Invalid provider configuration

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

Steps to Reproduce

  1. terraform init
  2. terraform plan

Additional Context

During testing, we accidentally omitted a versions.tf file which contained our provider info for azurerm. The error we received is indeed a valid error, but the URL it provided is inaccurate as noted in Expected Behavior.

References

No response

@KloudGeek KloudGeek added bug new new issue not yet triaged labels Sep 18, 2024
@jbardin
Copy link
Member

jbardin commented Sep 19, 2024

Hi @KloudGeek,

Thanks for filing the issue. The format of the provider isn't intended to be a URL, rather it's the fully qualified name of the provider in the format host/namespace/name. The given string is the unambiguous value you could put in the required_providers source field to locate the provider, though it's typically used in the shortened version hashicorp/azurerm with an implied registry host of registry.terraform.io.

Perhaps however there is something the registry team could do to help redirect this request to a more useful page, so I'll let this issue get forwarded to them.

Thanks!

@KloudGeek
Copy link
Author

Sorry for my misunderstanding, and thank you for the clarification.

@jbardin jbardin changed the title Error on terraform plan using azurerm returns valid error with invalid URL for details A way for the registry redirect the url corresponding to a fully qualified provider name Sep 19, 2024
@crw
Copy link
Collaborator

crw commented Sep 23, 2024

The current process to get an issue to the Registry team is to email [email protected]. Please go ahead and re-file with them via email, as they do not look at issues in the Terraform repository. Thanks!

@crw crw closed this as completed Sep 23, 2024
@crw crw closed this as not planned Won't fix, can't repro, duplicate, stale Sep 23, 2024
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement new new issue not yet triaged registry
Projects
None yet
Development

No branches or pull requests

3 participants