Skip to content

Commit 827b4f4

Browse files
committed
add
1 parent 2285216 commit 827b4f4

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

website/docs/index.html.markdown

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,28 @@ provider "tencentcloud" {
121121
}
122122
```
123123

124+
Use `allowed_account_ids` or `forbidden_account_ids`
125+
126+
```hcl
127+
provider "tencentcloud" {
128+
secret_id = "my-secret-id"
129+
secret_key = "my-secret-key"
130+
region = "ap-guangzhou"
131+
132+
allowed_account_ids = ["100023201586", "100023201349"]
133+
}
134+
```
135+
136+
```hcl
137+
provider "tencentcloud" {
138+
secret_id = "my-secret-id"
139+
secret_key = "my-secret-key"
140+
region = "ap-guangzhou"
141+
142+
forbidden_account_ids = ["100023201223"]
143+
}
144+
```
145+
124146
### Environment variables
125147

126148
You can provide your credentials via `TENCENTCLOUD_SECRET_ID` and `TENCENTCLOUD_SECRET_KEY` environment variables,
@@ -359,6 +381,8 @@ In addition to generic provider arguments (e.g. alias and version), the followin
359381
* `protocol` - (Optional, Available in 1.37.0+) The protocol of the API request. Valid values: `HTTP` and `HTTPS`. Default is `HTTPS`.
360382
* `domain` - (Optional, Available in 1.37.0+) The root domain of the API request, Default is `tencentcloudapi.com`.
361383
* `cam_role_name` - (Optional, Available in 1.81.117+) The name of the CVM instance CAM role. It can be sourced from the `TENCENTCLOUD_CAM_ROLE_NAME` environment variable.
384+
* `allowed_account_ids` - (Optional) List of allowed TencentCloud account IDs to prevent you from mistakenly using the wrong one (and potentially end up destroying a live environment). Conflicts with `forbidden_account_ids`, If use `assume_role_with_saml` or `assume_role_with_web_identity`, it is not supported.
385+
* `forbidden_account_ids` - (Optional) List of forbidden TencentCloud account IDs to prevent you from mistakenly using the wrong one (and potentially end up destroying a live environment). Conflicts with `allowed_account_ids`, If use `assume_role_with_saml` or `assume_role_with_web_identity`, it is not supported.
362386

363387
The nested `assume_role` block supports the following:
364388
* `role_arn` - (Required) The ARN of the role to assume. It can also be sourced from the `TENCENTCLOUD_ASSUME_ROLE_ARN` environment variable.

0 commit comments

Comments
 (0)