0
votes

So I am following Terrafom's official page to install and start with Terraform, but when I come to terraform init command, I am getting the following error.

Error: Failed to query available provider packages │ │ Could not retrieve the list of available versions for provider kreuzwerker/docker: 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 192.168.0.1:53: server misbehaving

1
Looks like dns resolved terraform.io to an RFC 1918 address. - theherk

1 Answers

0
votes

The issue seems to be with the network connectivity. If you are using a VPN stop it and then retry the command terraform init.