Issue initializing terraform

this is error I am kipping having.
error: failed to query available provider packages
could not retrieve the list of available versions for provider hashicorp/aws: could not connect to failed to request discovery document

Verify that you can access the Terraform registry ( from your network. You can do this by trying to access the registry URL in a web browser.

better still, try from the command-line

curl -L

(-L is to follow a redirect)

and see if you get a response.