Useful or not, from you.
terraform 'terraform init' failed with 'Registry service unreachable.' error

my terraform init command always failed with below error. Please kindly help.

======================================== gapan@cn-gapan-415:~/testterraform$ terraform init

Initializing the backend...

Initializing provider plugins...

  • Checking for available provider plugins...

Registry service unreachable.

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

Error: registry service is unreachable, check for status updates

Version: Terraform v0.12.0

I am sure my network works fine.

I also checked All Systems Operational

Terraform is running in Ubuntu hosting on Windows.

That's a useful answer
Without any help

I also tried 'sudo terraform init' and manually created .terraform folder. Still the same error.