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
Release files for c7n-tencentcloud 0.1.34
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| c7n_tencentcloud-0.1.34-py3-none-any.whl | Python 3 | none | any | Details |
Release files / c7n_tencentcloud-0.1.34-py3-none-any.whl
| Download URL | c7n_tencentcloud-0.1.34-py3-none-any.whl |
|---|---|
| Size | 48.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1989d09ee39db7360a2dc074a69b5c7ac2ad00dc783c56cea64340e2e5bf7d3
|
|
BLAKE2b-256 checksum How to use checksums |
99bf60a71bf2429bd004377f4ba9038f3de0bc6f5b1cd353f91acc0ad1c467dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.3
|