Fixing the Invalid provider registry host error
Written by
Updated at December 17, 2025
Issue 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.
Solution
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.