Fixing the Permission denied to create UDP listener in folder error when using Terraform
Written by
Updated at December 17, 2025
Issue description
When trying to use Terraform for creating, modifying, or deleting cloud resources, you get 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
Solution
HashiCorp has blocked Russian IP addresses from accessing their repositories. Use the HashiCorp registry mirror in Yandex Cloud. To do this, follow these steps:
- Configure Terraform using this guide.
- Go to the folder containing the Terraform manifest code.
- Run
terraform init -upgrade.
If the issue persists
If the above actions did not help, create a support ticket
- Contents of the
~/.terraformrcfile for Linux or MacOS devices, or%APPDATA%/terraform.rcfor Microsoft Windows® devices. For macOS and Linux,~is shorthand for the user’s home directory. - Error output when trying to apply the manifest code with the
terraform planorterraform applycommand. curl -vk registry.terraform.ioandcurl -vk https://terraform-mirror.yandexcloud.netcommand output.