I am trying to update hashicorp/aws provider version.
I added terraform.tf file with following content:
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
Later I tried to update modules using:
terraform init -upgrade
However, I have started to get:
Could not retrieve the list of available versions for provider hashicorp/aws:
no available releases match the given constraints >= 2.0.0, ~> 3.27, ~> 4.0
How could this problem be resolved?