Este é o meu código
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.16"
}
}
required_version = ">= 1.2.0"
}
provider "aws" {
region = "us-west-2"
}
Ao rodar o comando terraform init
, eu recebo como retorno o seguinte:
Initializing the backend...
Initializing provider plugins...
- Finding hashicorp/aws versions matching "~> 4.16"...
╷
│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for
│ provider hashicorp/aws: could not connect to
│ registry.terraform.io: failed to request discovery
│ document: Get
│ "https://registry.terraform.io/.well-known/terraform.json":
│ dial tcp: lookup registry.terraform.io on [::1]:53: read
│ udp [::1]:60859->[::1]:53: read: connection refused