Skip to main content

Cloud Custodian - Tencent Cloud Provider

Project description

Tencent Cloud

a provider for cloud custodian for usage with Tencent Cloud.

Installation

pip install c7n-tencentcloud

Usage

To execute policies against tencent cloud you'll need to provide api credentials for custodian to interact with the cloud apis.

as a best practice create a sub account / cam user with api keys in the console.

Credential Configuration

Method 1: Environment Variables

export TENCENTCLOUD_SECRET_ID="xyz"
export TENCENTCLOUD_SECRET_KEY="abc123"
export TENCENTCLOUD_REGION="na-ashburn"
custodian run -v policy.yml

Method 2: Profile Configuration (Recommended)

Create a credentials file at ~/.tencentcloud/credentials:

[default]
secret_id = your_default_secret_id
secret_key = your_default_secret_key
region = ap-singapore

[production]
secret_id = your_prod_secret_id
secret_key = your_prod_secret_key
region = na-ashburn

[development]
secret_id = your_dev_secret_id
secret_key = your_dev_secret_key
region = ap-singapore

Then use the --profile parameter:

# Use default profile
custodian run -v policy.yml --output-dir ./output

# Use specific profile
custodian run -v policy.yml --profile production --output-dir ./output

region can also be passed on the cli via the --region flag, complete list of regions is here https://www.tencentcloud.com/document/product/213/6091

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

c7n_tencentcloud-0.1.33-py3-none-any.whl (48.7 kB view details)

Uploaded Python 3

File details

Details for the file c7n_tencentcloud-0.1.33-py3-none-any.whl.

File metadata

File hashes

Hashes for c7n_tencentcloud-0.1.33-py3-none-any.whl
Algorithm Hash digest
SHA256 cd45c1d0b38cc879abd0205fd295ab21be829d762ed519419af3d602763228c6
MD5 57d6a75c40f6587dcca9af76bf8ac2ad
BLAKE2b-256 eda314561bfb29088e2c43646ca239c08d99ebec17d2664d53818812f9f0cb8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page