» 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"
  service_account_key_file = "path_to_service_account_key_file"
  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 - (Optional) Security token used for authentication in Yandex.Cloud.

This can also be specified using environment variable YC_TOKEN.

This can also be specified using environment variable YC_SERVICE_ACCOUNT_KEY_FILE. You can read how to create service account key file here.

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

This can also be specified using environment variable YC_CLOUD_ID.

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

This can also be specified using 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 specified using environment variable YC_ZONE.