The Huaweicloud Pulumi Provider lets you manage Huaweicloud resources.
This package is available for several languages/platforms:
To use from JavaScript or TypeScript in Node.js, install using either npm
:
npm install @huaweicloudos/huaweicloud
or yarn
:
yarn add @huaweicloudos/huaweicloud
To use from Python, install using pip
:
pip install pulumi_huaweicloud
To use from Go, use go get
to grab the latest version of the library:
go get github.com/huaweicloud/pulumi-huaweicloud/sdk/go/...
The following configuration points are available for the huaweicloud
provider:
-
huaweicloud:region
- (Optional) This is the Huawei Cloud region. It must be provided when usingstatic credentials
authentication, but it can also be sourced from theHW_REGION_NAME
environment variables. -
huaweicloud:access_key
- (Optional) The access key of the HuaweiCloud to use. If omitted, theHW_ACCESS_KEY
environment variable is used. -
huaweicloud:secret_key
- (Optional) The secret key of the HuaweiCloud to use. If omitted, theHW_SECRET_KEY
environment variable is used. -
huaweicloud:shared_config_file
- (Optional) The path to the shared config file. If omitted, theHW_SHARED_CONFIG_FILE
environment variable is used. -
huaweicloud:profile
- (Optional) The profile name as set in the shared config file. If omitted, theHW_PROFILE
environment variable is used. Defaults to thecurrent
profile in the shared config file. -
huaweicloud:assume_role
- (Optional) Configuration block for an assumed role. See below. Only one assume_role block may be in the configuration. -
huaweicloud:project_name
- (Optional) The Name of the project to login with. If omitted, theHW_PROJECT_NAME
environment variable orregion
is used. -
huaweicloud:domain_name
- (Optional) The Account name of IAM to scope to. If omitted, theHW_DOMAIN_NAME
environment variable is used. -
huaweicloud:security_token
- (Optional) The security token to authenticate with a temporary security credential. If omitted, theHW_SECURITY_TOKEN
environment variable is used. -
huaweicloud:cloud
- (Optional) The endpoint of the cloud provider. If omitted, theHW_CLOUD
environment variable is used. Defaults tomyhuaweicloud.com
. -
huaweicloud:auth_url
- (Optional, Required before 1.14.0) The Identity authentication URL. If omitted, theHW_AUTH_URL
environment variable is used. Defaults tohttps://iam.{{region}}.{{cloud}}:443/v3
. -
huaweicloud:insecure
- (Optional) Trust self-signed SSL certificates. If omitted, theHW_INSECURE
environment variable is used. -
huaweicloud: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. The default value is5
. If omitted, theHW_MAX_RETRIES
environment variable is used. -
huaweicloud:enterprise_project_id
- (Optional) Default Enterprise Project ID for supported resources. If omitted, theHW_ENTERPRISE_PROJECT_ID
environment variable is used. -
huaweicloud:endpoints
- (Optional) Configuration block in key/value pairs for customizing service endpoints. The following endpoints support to be customized: autoscaling, ecs, ims, vpc, nat, evs, obs, sfs, cce, rds, dds, iam. An example provider configuration:provider "huaweicloud" { ... endpoints = { ecs = "https://ecs-customizing-endpoint.com" } }
The assume_role
block supports:
agency_name
- (Required) The name of the agency for assume role. If omitted, theHW_ASSUME_ROLE_AGENCY_NAME
environment variable is used.domain_name
- (Required) The name of the agency domain for assume role. If omitted, theHW_ASSUME_ROLE_DOMAIN_NAME
environment variable is used.
For detailed reference documentation, please visit the Huaweicloud Pulumi Provider.