Hashicorp/server provider not available

Hi There!!

I am upgrading TF version from 1.0 to 1.1 and while executing the TF plan getting the below error, something related to hashicorp/server provider, which am not using in any sense…

Failed to query available provider packages

Could not retrieve the list of available versions for provider hashicorp/server

Let me know if am doing anything wrong or missing anything.


Hi @sandeepsharmadevops,

To start I would suggest running the command terraform providers to see which of your modules seems to be depending on this provider.

There is currently no provider called hashicorp/server, and so I suspect this problem is caused by some of Terraform’s rules to handle backward-compatibility with older Terraform modules that predate us having a heirarchical namespace for providers.

A common way this problem can arise is if you write an incorrect resource type name, such as:

resource "server_anything" "anything" {
  # ...

If there is no provider with the local name “server” declared in the module then Terraform guesses – for backward compatibilty with the behavior of older Terraform versions – that you’re intending to use hashicorp/server. That’s an incorrect guess in this case, of course.

Thanks for the reply @apparentlymart i have checked the source code, and didn’t find any resource block where such a name is defined, what other terraform blocks or others can be considered to check for such a name?