Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
All solutions
    • All solutions for the Terraform provider for Yandex Cloud
    • Resolving the 'failed to query available provider packages' error when using Terraform
    • Zone is set as public and private at the same time
    • Troubleshooting the 'invalid provider registry host' error

In this article:

  • Issue description
  • Solution
  • If the issue persists
  1. Terraform provider for Yandex Cloud
  2. Resolving the 'failed to query available provider packages' error when using Terraform

Resolving the 'failed to query available provider packages' error when using Terraform

Written by
Yandex Cloud
Updated at November 27, 2023
  • Issue description
  • Solution
  • If the issue persists

Issue descriptionIssue description

When you attempt to use Terraform for creating, modifying, or deleting cloud resources, you see this error message:

│ Error: Failed to query available provider packages
│
│ Could not retrieve the list of available versions for provider yandex-cloud/yandex: could not connect to registry.terraform.io:
│ Failed to request discovery document: 403 Forbidden

SolutionSolution

Hashicorp has blocked Russian IP addresses from accessing their repositories.
Use the Hashicorp registry mirror in Yandex Cloud. For this, you need to configure Terraform following this guide:

Then, navigate to the folder with the Terraform manifest code and run terraform init -upgrade.

If the issue persistsIf the issue persists

If the above actions didn't help, create a request for support.
In the request, specify the following information:

  1. The content of the ~/.terraformrc file (on Linux or MacOS computers) or %APPDATA%/terraform.rc (on Windows computers).
  2. Error output when trying to apply manifest code with the terraform plan or terraform apply command.
  3. The output of the curl -vk registry.terraform.io and curl -vk https://terraform-mirror.yandexcloud.net command

Was the article helpful?

Previous
All solutions for the Terraform provider for Yandex Cloud
Next
Zone is set as public and private at the same time
Yandex project
© 2025 Yandex.Cloud LLC