We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d961b3f commit ee3d403Copy full SHA for ee3d403
website/docs/index.html.markdown
@@ -243,11 +243,16 @@ You can set the cos domain by setting the environment variable `TENCENTCLOUD_COS
243
-> **Note:** Please note that not all cos resources are supported. Please pay attention to the prompts for each resource.
244
245
```hcl
246
+locals {
247
+ region = "ap-guangzhou"
248
+ cdc_id = "cluster_xxx"
249
+}
250
+
251
provider "tencentcloud" {
- secret_id = "my-secret-id"
- secret_key = "my-secret-key"
- region = "ap-guangzhou"
- 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/"
256
}
257
```
258
0 commit comments