» Yandex Cloud Provider

The Yandex Cloud provider is used to interact with Yandex Cloud services. The provider needs to be configured with the proper credentials before it can be used.

Use the navigation to the left to read about the available resources.

» Example Usage

// Configure the Yandex Cloud provider
provider "yandex" {
  token     = "auth_token_here"
  cloud_id  = "cloud_id_here"
  folder_id = "folder_id_here"
  zone      = "ru-central1-a"
}

// Create a new instance
resource "yandex_compute_instance" "default" {
  ...
}

» Configuration Reference

The following keys can be used to configure the provider.

  • token - (Required) Security token used for authentication in the Yandex Cloud.

Token can also be set as an environment variable YC_TOKEN.

  • cloud_id - (Required) The ID of Cloud to apply any resources to.

This can also be set as an environment variable YC_CLOUD_ID.

  • folder_id - (Required) The Folder ID to operate under, if not specified by a given resource.

This can also be set as an environment variable YC_FOLDER_ID.

  • zone - (Optional) The default availability zone to operate under, if not specified by a given resource.

This can also be set as an environment variable YC_ZONE.