1.0.1 • Published 4 years ago

@aladmit/yandex v1.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

Unofficial Pulumi Yandex.Cloud Resource Provider

This resource provider for Pulumi lets you create, deploy and manage resources in Yandex.Cloud. Provider does everything official terraform provider does.

I don't have resources at the moment to support full documentation for all resources, but you always can use official terraform provider documentation, everything works the same.

Its published only as javascript/typescript package. Packages for other languages will be published later.

How to install provider

Add provider to your package.json

    $ npm install @aladmit/yandex

or `yarn`:

    $ yarn add @aladmit/yandex

Configuration

import * as pulumi from "@pulumi/pulumi";
import * as yandex from "@aladmit/yandex;

export const vpc = yandex.getVpcSubnet({
    name: "default-ru-central1-c"
});

// Its posibble to configure provider by keys or environment variables
const provider = new yandex.Provider("yandex", {
    token: "auth_token_here",
    cloudId: "cloud_id_here",
    folderId: "folder_id_here",
    zone: "ru-central1-a"
});

export const vpc = yandex.getVpcSubnet({
    name: "default-ru-central1-c"
}, { provider: provider });

The following configuration points are available for the yandex provider:

Configuratino keyEnvironment VARDescription
tokenYC_TOKENSecurity token or IAM token used for authentication in Yandex.Cloud
service_account_key_fileYC_SERVICE_ACCOUNT_KEY_FILEContains either a path to or the contents of the Service Account file in JSON format.
cloud_id (Required)YC_CLOUD_IDThe ID of the cloud to apply any resources to.
folder_id(Required)YC_FOLDER_IDThe ID of the folder to operate under, if not specified by a given resource.
zone (Optional)YC_ZONEThe default availability zone to operate under, if not specified by a given resource.
storage_access_key(Optional)YC_STORAGE_ACCESS_KEYYandex.Cloud storage service access key, which is used when a storage data/resource doesn't have an access key explicitly specified.
storage_secret_key(Optional)YC_STORAGE_SECRET_KEYYandex.Cloud storage service secret key, which is used when a storage data/resource doesn't have a secret key explicitly specified.
ymq_access_key (Optional)YC_MESSAGE_QUEUE_ACCESS_KEYYandex.Cloud Message Queue service access key, which is used when a YMQ queue resource doesn't have an access key explicitly specified.
ymq_secret_key (Optional)YC_MESSAGE_QUEUE_SECRET_KEYYandex.Cloud Message Queue service secret key, which is used when a YMQ queue resource doesn't have a secret key explicitly specified.
max_retries (Optional)This is the maximum number of times an API call is retried, in the case where requests are being throttled or experiencing transient failures. The delay between the subsequent API calls increases exponentially