1. Packages
  2. Yandex
  3. Installation & Configuration
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

Yandex: Installation & Configuration

yandex logo
Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi

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

    Installation

    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 pulumi.com. 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.

    yandex logo
    Yandex v0.13.0 published on Tuesday, Feb 22, 2022 by Pulumi