To improve your experience with Volcengine skill, we invite you to participate in our Survey with Prizes .
The Volcenginecc resource provider for Pulumi lets you use volcengine resources in your cloud programs. To use this package, please install the Pulumi CLI first.
This package is available in many languages in the standard packaging formats.
To use from JavaScript or TypeScript in Node.js, install using either npm:
$ npm install @volcengine/pulumi-volcenginecc
or yarn:
$ yarn add @volcengine/pulumi-volcenginecc
To use from Python, install using pip:
$ pip install pulumi_volcenginecc
To use from Go, use go get to grab the latest version of the library
$ go get github.com/volcengine/pulumi-volcengine/sdk
To use from .NET, install using dotnet add package:
$ dotnet add package Pulumi.Volcenginecc
In addition to generic provider arguments
(e.g. alias and version), the following arguments are supported in the Volcenginecc
provider configuration:
accessKey(String) The Access Key for Volcengine Provider. It must be provided, but it can also be sourced from theVOLCENGINE_ACCESS_KEYenvironment variablesecretKey(String) The Secret Key for Volcengine Provider. It must be provided, but it can also be sourced from theVOLCENGINE_SECRET_KEYenvironment variablesessionToken(String) The Session Token for Volcengine Provider, used together with AccessKey and SecretKey when authenticating with temporary STS credentials. It can also be sourced from theVOLCENGINE_SESSION_TOKENenvironment variableprofile(String) The Profile for Volcengine Provider. It can be used as an alternative authentication method to AK/SK, and can also be sourced from theVOLCENGINE_PROFILEenvironment variablefile_path(String) The File Path for Volcengine Provider. It specifies the path to the profile configuration file. If not specified, the default path~/.volcenginewill be used, and can also be sourced from theVOLCENGINE_FILE_PATHenvironment variableassumeRole(Attributes) Anassume_roleblock (documented below). Only oneassume_roleblock may be in the configuration. (see below for nested schema)customerHeaders(String) CUSTOMER HEADERS for Volcengine Provider. The customer_headers field uses commas (,) to separate multiple headers, and colons (:) to separate each header key from its corresponding value.disableSsl(Boolean) Disable SSL for Volcengine Providerendpoints(Attributes) Anendpointsblock (documented below). Only oneendpointsblock may be in the configuration. (see below for nested schema)proxyUrl(String) PROXY URL for Volcengine Providerregion(String) The Region for Volcengine Provider. It must be provided, but it can also be sourced from theVOLCENGINE_REGIONenvironment variable
The provider marks accessKey, secretKey, and sessionToken as Pulumi secrets,
including values supplied through environment variables. Pulumi encrypts these
provider inputs and outputs in the stack state using the stack's secrets provider.
Environment variables can still be copied into provider state; they do not prevent
credentials from being persisted.
Store stack configuration as secrets as well. Run these commands without a value argument to enter credentials at the hidden prompt:
pulumi config set --secret volcenginecc:accessKey
pulumi config set --secret volcenginecc:secretKey
# Only when using temporary STS credentials:
pulumi config set --secret volcenginecc:sessionTokenWhen constructing a provider explicitly, use secret inputs, especially with older provider versions. For example, in TypeScript:
const config = new pulumi.Config("volcenginecc");
const provider = new volcenginecc.Provider("volcenginecc", {
accessKey: config.requireSecret("accessKey"),
secretKey: config.requireSecret("secretKey"),
sessionToken: config.getSecret("sessionToken"),
});Earlier versions did not mark these fields as secrets. To migrate an affected
stack, upgrade both the provider plugin and language SDK to a release containing
this fix, convert any plaintext stack configuration using the commands above,
review pulumi preview, and run pulumi up. Verify that the provider's credential
fields in both inputs and outputs contain ciphertext objects in a normal
pulumi stack export. Do not use --show-secrets for this check: that option
intentionally decrypts secrets.
Updating the current state does not erase plaintext credentials from older state versions, backups, exports, or logs. If credentials were exposed, rotate them and handle those copies according to your backend's retention and access policies.
Required:
-
assumeRoleTrn(String) he TRN of the role to assume. -
durationSeconds(Number) The duration of the session when making the AssumeRole call. Its value ranges from 900 to 43200(seconds), and default is 3600 seconds. Optional: -
policy(String) A more restrictive policy when making the AssumeRole call
Optional:
cloudcontrolapi(String) Use this to override the default Cloud Control API service endpoint URLsts(String) Use this to override the default STS service endpoint URL
This project takes security seriously. For vulnerability reporting and supported versions, see SECURITY.md
