How to fix error Registry service unreachable This may indicate a network issue, or an issue with the requested Terraform Registry.

If you got error when run command terraform init :

Registry service unreachable.

This may indicate a network issue, or an issue with the requested Terraform Registry.


Error: registry service is unreachable, check https://status.hashicorp.com/ for status updates.


This is the solution :

curl -k https://registry.terraform.io/.well-known/terraform.json




Save the day !!!

Comments