Vkcs Provider
Generate Provider
The Vkcs provider must be installed as a Local Package by following the instructions for Any Terraform Provider:
pulumi package add terraform-provider vk-cs/vkcs
Overview
The VKCS provider is used to interact with VKCS 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
import * as pulumi from "@pulumi/pulumi";
import * as vkcs from "@pulumi/vkcs";
// Create new compute instance
const myinstance = new vkcs.ComputeInstance("myinstance", {});
import pulumi
import pulumi_vkcs as vkcs
# Create new compute instance
myinstance = vkcs.ComputeInstance("myinstance")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vkcs = Pulumi.Vkcs;
return await Deployment.RunAsync(() =>
{
// Create new compute instance
var myinstance = new Vkcs.ComputeInstance("myinstance");
});
package main
import (
"github.com/pulumi/pulumi-pulumi-provider/sdks/go/vkcs/vkcs"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create new compute instance
_, err := vkcs.NewComputeInstance(ctx, "myinstance", nil)
if err != nil {
return err
}
return nil
})
}
resources:
# Create new compute instance
myinstance:
type: vkcs:ComputeInstance
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vkcs.ComputeInstance;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Create new compute instance
var myinstance = new ComputeInstance("myinstance");
}
}
Authentication
The VKCS provider supports username/password authentication. Preconfigured provider file with username and projectId can be downloaded from https://mcs.mail.ru/app/project portal. Go to Pulumi tab > click on the “Download VKCS provider file”.
# Pulumi.yaml provider configuration file
name: configuration-example
runtime:
config:
vkcs:password:
value: PASSWORD
vkcs:projectId:
value: PROJECT_ID
vkcs:username:
value: USERNAME
Configuration Reference
accessTokenoptional sensitive string → A temporary token to use for authentication. You alternatively can useOS_AUTH_TOKENenvironment variable. If both are specified, this attribute takes precedence.
Note: The token will not be renewed and will eventually expire, usually after 1 hour. If access is needed for longer than a token’s lifetime, use credentials-based authentication.authUrloptional string → The Identity authentication URL.cloudContainersApiVersionoptional string → Cloud Containers API version to use.
Note: Only for custom VKCS deployments.endpointOverridesoptional → Custom endpoints for corresponding APIs. If not specified, endpoints provided by the catalog will be used.backupoptional string → Backup API custom endpoint.blockStorageoptional string → Block Storage API custom endpoint.cdnoptional string → CDN API custom endpoint.computeoptional string → Compute API custom endpoint.containerInfraoptional string → Cloud Containers API custom endpoint.containerInfraAddonsoptional string → Cloud Containers Addons API custom endpoint.dataPlatformoptional string → Data Platform API custom endpoint.databaseoptional string → Database API custom endpoint.iamServiceUsersoptional string → IAM Service Users API custom endpoint.icsoptional string → ICS API custom endpoint.imageoptional string → Image API custom endpoint.keyManageroptional string → Key Manager API custom endpoint.loadBalanceroptional string → Load Balancer API custom endpoint.mlPlatformoptional string → ML Platform API custom endpoint.networkingoptional string → Networking API custom endpoint.publicDnsoptional string → Public DNS API custom endpoint.sharedFilesystemoptional string → Shared Filesystem API custom endpoint.templateroptional string → Templater API custom endpoint.
passwordoptional sensitive string → Password to login with.projectIdoptional string → The ID of Project to login with.regionoptional string → A region to use.skipClientAuthoptional boolean → Skip authentication on client initialization. Only applicablie ifaccessTokenis provided.
Note: If set to true, the endpoint catalog will not be used for discovery and all required endpoints must be provided viaendpointOverrides.userDomainIdoptional string → The id of the domain where the user resides.userDomainNameoptional string → The name of the domain where the user resides.usernameoptional string → User name to login with.
Working with VKCS Cloud Storage
VKCS provider does not support working with cloud storage. To do this, we recommend an AWS provider, you can learn how to use it by following this documentation.
