Yandex Cloud
Search
Contact UsTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2025 Direct Cursus Technology L.L.C.
All solutions
    • All solutions for the Yandex Cloud Terraform provider
    • Resolving the `Failed to query available provider packages` error when using Terraform
    • Zone appears as both public and private
    • Resolving the `Invalid provider registry host` error

In this article:

  • Issue description
  • Solution
  1. Yandex Cloud Terraform provider
  2. Resolving the `Invalid provider registry host` error

Fixing the Invalid provider registry host error

Written by
Yandex Cloud
Updated at December 17, 2025
  • Issue description
  • Solution

Issue descriptionIssue description

When trying to run terraform init, you see this error:

Initializing the backend...

Initializing provider plugins...
- Finding latest version of yandex-cloud/yandex...
╷
│ Error: Invalid provider registry host
│ 
│ The host "registry.terraform.io" given in in provider source address "registry.terraform.io/yandex-cloud/yandex" does not
│ offer a Terraform provider registry.

SolutionSolution

Make sure the provider is set up correctly in the Terraform configuration file. For more info on this setting, see this guide that explains how to get started with Terraform.

The way to resolve the issue depends on the OS you are using:

Microsoft Windows®
Linux

Make sure the file named terraform.rc is located in the %APPDATA% folder for the user under which terraform init is running. If you have already downloaded .terraformrc, rename it, and then move it to the correct folder. To identify its actual location in your system, use the $env:APPDATA environment variable in PowerShell.

Move the .terraformrc file from the ~/.terraform folder to the root of your home folder, and then run terraform init again.

Was the article helpful?

Previous
Zone appears as both public and private
Next
All solutions for partner program
© 2025 Direct Cursus Technology L.L.C.