Yandex: Installation & Configuration
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:
- JavaScript/TypeScript:
@pulumi/yandex - Python:
pulumi-yandex - Go:
github.com/pulumi/pulumi-yandex/sdk/go/yandex - .NET:
Pulumi.Yandex
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:
Set the environment variables
YC_TOKENorYC_SERVICE_ACCOUNT_KEY_FILEandYC_CLOUD_IDandYC_FOLDER_ID:$ export YC_TOKEN=XXXXXX $ export YC_CLOUD_ID=YYYYYY $ export YC_FOLDER_ID=ZZZZZZSet 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.