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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file c7n_tencentcloud-0.1.32-py3-none-any.whl.
File metadata
- Download URL: c7n_tencentcloud-0.1.32-py3-none-any.whl
- Upload date:
- Size: 48.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e3cc07b46b997694718fdbde66d36733a3ea851cb93c47105ff8ead4176554f
|
|
| MD5 |
b409d87fac4b15772593dd6d1b377e36
|
|
| BLAKE2b-256 |
14817f3a3ada46d69083f0b5b35d0c04f073572391ad68e514ef4a94381a58ac
|