Metadata-Version: 2.4
Name: c7n_tencentcloud
Version: 0.1.31
Summary: Cloud Custodian - Tencent Cloud Provider
Project-URL: Bug Tracker, https://github.com/cloud-custodian/cloud-custodian/issues
Project-URL: homepage, https://cloudcustodian.io
Project-URL: documentation, https://cloudcustodian.io/docs
Author: Tencent Cloud
License: Apache-2.0
Requires-Python: <4.0.0,>=3.9.2
Requires-Dist: c7n ==0.9.49
Requires-Dist: cos-python-sdk-v5 ==1.9.41
Requires-Dist: pytz ==2025.2
Requires-Dist: retrying ==1.4.2
Requires-Dist: tencentcloud-sdk-python ==3.1.31
Description-Content-Type: text/markdown

# Tencent Cloud

a provider for cloud custodian for usage with Tencent Cloud.

# Installation


```shell

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

```shell
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`:

```ini
[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:

```shell
# 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

