» 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
.
-
service_account_key_file
- (Optional) Path to file that contains service account key data.
This can also be specified using environment variable YC_SERVICE_ACCOUNT_KEY_FILE
.
You can read how to create service account key file here.
NOTE: Only one of token
or service_account_key_file
can be specified.
This can also be specified using environment variable YC_CLOUD_ID
.
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
.