Yandex: Installation & Configuration

The Pulumi Yandex Cloud provider uses the Yandex Cloud SDK to manage and provision resources.


The Yandex provider is available as a package in all Pulumi languages:

Configuring The Provider

Pulumi relies on the Yandex Cloud SDK to authenticate requests from your computer to Yandex Cloud. Your credentials are never sent to The Pulumi Yandex Cloud Provider needs to be configured with Yandex Cloud credentials before it can be used to create resources.

Once the credentials are obtained, there are two ways to communicate your configuration to Pulumi:

  1. Set the environment variables YC_TOKEN or YC_SERVICE_ACCOUNT_KEY_FILE and YC_CLOUD_ID and YC_FOLDER_ID:

    $ export YC_TOKEN=XXXXXX
    $ export YC_CLOUD_ID=YYYYYY
    $ export YC_FOLDER_ID=ZZZZZZ
  2. Set them using configuration, if you prefer that they be stored alongside your Pulumi stack for easy multi-user access:

    $ pulumi config set yandex:token XXXXXX --secret
    $ pulumi config set yandex:cloudId YYYYYY
    $ pulumi config set yandex:folderId ZZZZZZ

The complete list of configuration parameters is in the Yandex Cloud provider README. Remember to pass --secret when setting token so that it is properly encrypted.