Skip to content

Commit ee3d403

Browse files
committed
fix: modify cdc cos doc
1 parent d961b3f commit ee3d403

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

website/docs/index.html.markdown

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,16 @@ You can set the cos domain by setting the environment variable `TENCENTCLOUD_COS
243243
-> **Note:** Please note that not all cos resources are supported. Please pay attention to the prompts for each resource.
244244

245245
```hcl
246+
locals {
247+
region = "ap-guangzhou"
248+
cdc_id = "cluster_xxx"
249+
}
250+
246251
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/"
252+
region = local.region
253+
secret_id = "xxxxxx"
254+
secret_key = "xxxxxx"
255+
cos_domain = "https://${local.cdc_id}.cos-cdc.${local.region}.myqcloud.com/"
251256
}
252257
```
253258

0 commit comments

Comments
 (0)