Bytepluscc Provider
Installation
The Bytepluscc provider is available as a package in all Pulumi languages:
- JavaScript/TypeScript:
@byteplus/pulumi-bytepluscc - Python:
pulumi-bytepluscc - Go:
github.com/byteplus-sdk/pulumi-bytepluscc/sdk/go/bytepluscc - .NET:
Byteplus.Pulumi.Bytepluscc - Java:
com.byteplus/bytepluscc
Overview
The Byteplus Cloud Control Provider enables interaction with various Byteplus-supported resources through the Cloud Control API. Prior to usage, you must configure the provider with appropriate credentials.
Authentication
The bytepluscc provider accepts several ways to enter credentials for authentication. The following methods are supported, in this order, and explained below:
- Static credentials
- Environment variables
Static credentials
Static credentials can be provided by adding accessKey, secretKey and region in-line in the
bytepluscc provider configuration:
Usage:
# Pulumi.yaml provider configuration file
name: configuration-example
runtime:
config:
byteplus:accessKey:
value: 'TODO: var.access_key'
byteplus:region:
value: 'TODO: var.region'
byteplus:secretKey:
value: 'TODO: var.secret_key'
Environment variables
You can provide your credentials via BYTEPLUS_ACCESS_KEY, BYTEPLUS_SECRET_KEY environment variables. The Region can be set using the BYTEPLUS_REGION environment variables.
Usage:
# Pulumi.yaml provider configuration file
name: configuration-example
runtime:
$ export BYTEPLUS_ACCESS_KEY="<Your-Access-Key-ID>"
$ export BYTEPLUS_SECRET_KEY="<Your-Access-Key-Secret>"
$ export BYTEPLUS_REGION="cn-beijing"
Configuration Reference
In addition to generic provider arguments
(e.g. alias and version), the following arguments are supported in the Bytepluscc
provider configuration:
Optional
accessKey(String) The Access Key for Byteplus Provider. It must be provided, but it can also be sourced from theBYTEPLUS_ACCESS_KEYenvironment variablesecretKey(String) he Secret Key for Byteplus Provider. It must be provided, but it can also be sourced from theBYTEPLUS_SECRET_KEYenvironment variableassumeRole(Attributes) Anassume_roleblock (documented below). Only oneassume_roleblock may be in the configuration. (see below for nested schema)customerHeaders(String) CUSTOMER HEADERS for Byteplus 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 Byteplus Providerendpoints(Attributes) Anendpointsblock (documented below). Only oneendpointsblock may be in the configuration. (see below for nested schema)proxyUrl(String) PROXY URL for Byteplus Providerregion(String) The Region for Byteplus Provider. It must be provided, but it can also be sourced from theBYTEPLUS_REGIONenvironment variable
Nested Schema for assume_role
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
Nested Schema for endpoints
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
