Skip to content

Commit 622a902

Browse files
committed
fix: Added cdc cos example
1 parent 09da1f5 commit 622a902

15 files changed

+51
-4
lines changed

tencentcloud/services/cos/data_source_tc_cos_bucket_inventorys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Use this data source to query the COS bucket inventorys.
22

3-
~> **NOTE:** The current resource does not support `cos_domain`.
3+
~> **NOTE:** The current resource does not support cdc.
44

55
Example Usage
66

tencentcloud/services/cos/resource_tc_cos_bucket_domain_certificate_attachment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Provides a resource to attach/detach the corresponding certificate for the domain name in specified cos bucket.
22

3-
~> **NOTE:** The current resource does not support `cos_domain`.
3+
~> **NOTE:** The current resource does not support cdc.
44

55
Example Usage
66

tencentcloud/services/cos/resource_tc_cos_bucket_generate_inventory_immediately_operation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Provides a resource to generate a cos bucket inventory immediately
22

3-
~> **NOTE:** The current resource does not support `cos_domain`.
3+
~> **NOTE:** The current resource does not support cdc.
44

55
Example Usage
66

tencentcloud/services/cos/resource_tc_cos_bucket_inventory.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Provides a resource to create a cos bucket inventory
22

3+
~> **NOTE:** The current resource does not support cdc.
4+
35
Example Usage
46

57
```hcl

tencentcloud/services/cos/resource_tc_cos_bucket_referer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Provides a resource to create a cos bucket_referer
22

3-
~> **NOTE:** The current resource does not support `cos_domain`.
3+
~> **NOTE:** The current resource does not support cdc.
44

55
Example Usage
66

tencentcloud/services/cos/resource_tc_cos_object_restore_operation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
Provides a resource to restore object
22

3+
~> **NOTE:** The current resource does not support cdc.
4+
35
Example Usage
46

57
```hcl

website/docs/d/cos_batchs.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: |-
1111

1212
Use this data source to query the COS batch.
1313

14+
~> **NOTE:** The current resource does not support `cos_domain`.
15+
1416
## Example Usage
1517

1618
```hcl

website/docs/d/cos_bucket_inventorys.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: |-
1111

1212
Use this data source to query the COS bucket inventorys.
1313

14+
~> **NOTE:** The current resource does not support cdc.
15+
1416
## Example Usage
1517

1618
```hcl

website/docs/index.html.markdown

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,33 @@ $ export TENCENTCLOUD_ASSUME_ROLE_WEB_IDENTITY_TOKEN="my-web-identity-token"
236236
$ terraform plan
237237
```
238238

239+
### CDC cos usage
240+
241+
You can set the cos domain by setting the environment variable `TENCENTCLOUD_COS_DOMAIN`, and configure the cdc scenario as follows:
242+
243+
-> **Note:** Please note that not all cos resources are supported. Please pay attention to the prompts for each resource.
244+
245+
```hcl
246+
provider "tencentcloud" {
247+
secret_id = "my-secret-id"
248+
secret_key = "my-secret-key"
249+
region = "ap-guangzhou"
250+
cos_domain = "https://cluster-xxxxxx.cos-cdc.ap-guangzhou.myqcloud.com/"
251+
}
252+
```
253+
254+
The `cos_domain` can also provided via `TENCENTCLOUD_COS_DOMAIN` environment variables.
255+
256+
Usage:
257+
258+
```shell
259+
$ export TENCENTCLOUD_SECRET_ID="my-secret-id"
260+
$ export TENCENTCLOUD_SECRET_KEY="my-secret-key"
261+
$ export TENCENTCLOUD_REGION="ap-guangzhou"
262+
$ export TENCENTCLOUD_COS_DOMAIN="https://cluster-xxxxxx.cos-cdc.ap-guangzhou.myqcloud.com/"
263+
$ terraform plan
264+
```
265+
239266
### Shared credentials
240267

241268
You can use [Tencent Cloud credentials](https://www.tencentcloud.com/document/product/1013/33464) to specify your credentials. The default location is `$HOME/.tccli` on Linux and macOS, And `"%USERPROFILE%\.tccli"` on Windows. You can optionally specify a different location in the Terraform configuration by providing the `shared_credentials_dir` argument or using the `TENCENTCLOUD_SHARED_CREDENTIALS_DIR` environment variable. This method also supports a `profile` configuration and matching `TENCENTCLOUD_PROFILE` environment variable:

website/docs/r/cos_batch.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: |-
1111

1212
Provides a resource to create a cos bucket batch.
1313

14+
~> **NOTE:** The current resource does not support `cos_domain`.
15+
1416
## Example Usage
1517

1618
```hcl

website/docs/r/cos_bucket_domain_certificate_attachment.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: |-
1111

1212
Provides a resource to attach/detach the corresponding certificate for the domain name in specified cos bucket.
1313

14+
~> **NOTE:** The current resource does not support cdc.
15+
1416
## Example Usage
1517

1618
```hcl

website/docs/r/cos_bucket_generate_inventory_immediately_operation.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: |-
1111

1212
Provides a resource to generate a cos bucket inventory immediately
1313

14+
~> **NOTE:** The current resource does not support cdc.
15+
1416
## Example Usage
1517

1618
```hcl

website/docs/r/cos_bucket_inventory.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: |-
1111

1212
Provides a resource to create a cos bucket inventory
1313

14+
~> **NOTE:** The current resource does not support cdc.
15+
1416
## Example Usage
1517

1618
```hcl

website/docs/r/cos_bucket_referer.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: |-
1111

1212
Provides a resource to create a cos bucket_referer
1313

14+
~> **NOTE:** The current resource does not support cdc.
15+
1416
## Example Usage
1517

1618
```hcl

website/docs/r/cos_object_restore_operation.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ description: |-
1111

1212
Provides a resource to restore object
1313

14+
~> **NOTE:** The current resource does not support cdc.
15+
1416
## Example Usage
1517

1618
```hcl

0 commit comments

Comments
 (0)