I am getting the error message below when I use the command “terraform init”:
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/user: provider registry registry.terraform.io does not have a provider
│ named registry.terraform.io/hashicorp/user
│
│ All modules should specify their required_providers so that external consumers will get the correct providers when using a module. To see which
│ modules are currently depending on hashicorp/user, run the following command:
│ terraform providers
I honestly don’t know where the hashicorp/user is coming from, the only required providers i have in my main.tf is below, i don’t know why its bringing up hashicorp/user instead only hashicorp/aws:
terraform {
backend "s3" {
bucket = "terraform-cloud-challenge-state-bucket"
key = "global/s3/terraform.tfstate"
region = "eu-north-1"
#encrypt = true
#dynamodb_table = "terraform-cloud-challenge-state-lock"
}
}
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "5.22.0"
}
}
}
provider "aws" {
region = "eu-north-1"
}
Please help!