terraform version && terraform providers && terraform init
Got:
Terraform v1.10.4
on linux_amd64
Providers required by configuration:
.
└── provider[registry.terraform.io/hashicorp/aws] 5.83.1
Initializing the backend...
Initializing provider plugins...
- Finding hashicorp/aws versions matching "5.83.1"...
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider hashicorp/aws: no available releases match the given constraints 5.83.1
│
│ To see which modules are currently depending on hashicorp/aws and what versions are specified, run the following command:
│ terraform providers
╵
I finally cleared my ~/.terraform.d directory and Terraform was happy. Then I had another issue when using Terragrunt. I needed to clear again ~/.terraform.d and also ~/.terragrunt…