Terraform: Error: Failed to install provider — Error while installing hashicorp/aws v5.40.0: could not query provider registry / Get "https://releases.hashicorp.com/...": dial tcp: i/o timeout
Terraform found the provider version but couldn't download/verify the package.
Error: Failed to install providerError while installing hashicorp/aws v5.40.0: could not query provider registryGet "https://releases.hashicorp.com/terraform-provider-aws": dial tcp: i/o timeoutthe current package for registry.terraform.io/hashicorp/aws doesn't match any of the checksumsError: Failed to install provider from shared cache Meaning
Check network/proxy (HTTPS_PROXY), TLS interception (custom CA via SSL_CERT_FILE), disk space in .terraform/, and checksum/signature problems. Behind firewalls use a mirror (TF_CLI_CONFIG_FILE with provider_installation { network_mirror } or filesystem mirror) or plugin cache (TF_PLUGIN_CACHE_DIR).
Common causes
- Proxy/firewall blocking releases.hashicorp.com
- TLS inspection without trusted CA
- Disk full/permissions on .terraform
- Corrupted download/checksum mismatch
- Air-gapped environment
⚡ Quick fix
- Set proxy/CA env vars
- Use a mirror or
terraform providers mirroroffline - Clear
.terraformand retryterraform init
Detailed fix by platform
Linux
curl -I https://releases.hashicorp.com && rm -rf .terraform && terraform init
How to diagnose
- Network — Reachable?
- Proxy/CA — Set?
- Disk — Space?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Backend initialization required Terraform: Error: Backend initialization required, please run "terraform init" — Reason: Initial configuration of the requested backend "s3"
- Client.Timeout exceeded Get "https://registry-1.docker.io/v2/": net/http: request canceled while waiting for connection (Client.Timeout exceeded)
- Failed to query available provider packages Terraform: Error: Failed to query available provider packages — Could not retrieve the list of available versions for provider hashicorp/aws: no available releases match the given constraints
Most viewed in Terraform
- Error acquiring the state lock Terraform: Error: Error acquiring the state lock — ConditionalCheckFailedException / state blob is already locked
- Reference to undeclared resource Terraform: Error: Reference to undeclared resource / Reference to undeclared input variable
- Resource is tainted and must be replaced Terraform: # aws_instance.web is tainted, so must be replaced — -/+ destroy and then create replacement
Other ways to find it
Where this error sits
Origin: Platform & cloud. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 5 Nov 2026