Hi, I am trying to run terraform init and I get the below error.
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.51.0"
}
}
}
Configure the AWS Provider
provider “aws” {
region = “eu-west-1”
}
terraform init
Initializing the backend…
Successfully configured the backend “s3”! Terraform will automatically
use this backend unless the backend configuration changes.
Initializing provider plugins…
- Finding hashicorp/aws versions matching “~> 3.50.0”…
- Finding latest version of hashicorp/nat…
- Installing hashicorp/aws v3.50.0…
- Installed hashicorp/aws v3.50.0 (signed by HashiCorp)
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/nat: provider registry
│ registry.terraform.io does not have a provider named registry.terraform.io/hashicorp/nat
│
│ 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/nat, run the following command:
│ terraform providers
When I run terraform providers I get the below:
terraform providers
Providers required by configuration:
.
├── provider[registry.terraform.io/hashicorp/aws] ~> 3.50.0
└── provider[registry.terraform.io/hashicorp/nat]
Providers required by state:
provider[registry.terraform.io/hashicorp/aws]