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 registry.terraform.io: failed to request discovery document
Verify that you can access the Terraform registry (registry.terraform.io) 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 registry.terraform.io
(-L
is to follow a redirect)
and see if you get a response.