Skip to content

Commit 80347ce

Browse files
tongyimingmikatong
andauthored
fix(es): [127257768] update es instance doc (#3516)
* update es doc * add changelog --------- Co-authored-by: mikatong <mikatong@tencent.com>
1 parent 9d8bd92 commit 80347ce

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.changelog/3516.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_elasticsearch_instance: update availability_zone and subnet_id description
3+
```

tencentcloud/services/es/resource_tc_elasticsearch_instance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ func ResourceTencentCloudElasticsearchInstance() *schema.Resource {
4949
Optional: true,
5050
Default: "-",
5151
ForceNew: true,
52-
Description: "Availability zone. When create multi-az es, this parameter must be omitted or `-`.",
52+
Description: "Availability zone. When create multi-az es, this parameter must be the primary availability zone.",
5353
},
5454
"version": {
5555
Type: schema.TypeString,
@@ -67,7 +67,7 @@ func ResourceTencentCloudElasticsearchInstance() *schema.Resource {
6767
Optional: true,
6868
Default: "-",
6969
ForceNew: true,
70-
Description: "The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or `-`.",
70+
Description: "The ID of a VPC subnetwork. When create multi-az es, this parameter must be the subnet in the primary availability zone.",
7171
},
7272
"password": {
7373
Type: schema.TypeString,

website/docs/r/elasticsearch_instance.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ The following arguments are supported:
163163
* `password` - (Required, String) Password to an instance, the password needs to be 8 to 16 characters, including at least two items ([a-z,A-Z], [0-9] and [-!@#$%&^*+=_:;,.?] special symbols.
164164
* `version` - (Required, String) Version of the instance. Valid values are `5.6.4`, `6.4.3`, `6.8.2`, `7.5.1` and `7.10.1`.
165165
* `vpc_id` - (Required, String, ForceNew) The ID of a VPC network.
166-
* `availability_zone` - (Optional, String, ForceNew) Availability zone. When create multi-az es, this parameter must be omitted or `-`.
166+
* `availability_zone` - (Optional, String, ForceNew) Availability zone. When create multi-az es, this parameter must be the primary availability zone.
167167
* `basic_security_type` - (Optional, Int) Whether to enable X-Pack security authentication in Basic Edition 6.8 and above. Valid values are `1` and `2`. `1` is disabled, `2` is enabled, and default value is `1`. Notice: this parameter is only take effect on `basic` license.
168168
* `charge_period` - (Optional, Int, ForceNew) The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to `PREPAID`.
169169
* `charge_type` - (Optional, String, ForceNew) The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`.
@@ -180,7 +180,7 @@ The following arguments are supported:
180180
* `protocol` - (Optional, String) Create an https cluster, default is http.
181181
* `public_access` - (Optional, String) ES cluster public network access status. Valid values are `OPEN` and `CLOSE`. Cannot be changed at the same time as `es_acl`.
182182
* `renew_flag` - (Optional, String, ForceNew) When enabled, the instance will be renew automatically when it reach the end of the prepaid tenancy. Valid values are `RENEW_FLAG_AUTO` and `RENEW_FLAG_MANUAL`. NOTE: it only works when charge_type is set to `PREPAID`.
183-
* `subnet_id` - (Optional, String, ForceNew) The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted or `-`.
183+
* `subnet_id` - (Optional, String, ForceNew) The ID of a VPC subnetwork. When create multi-az es, this parameter must be the subnet in the primary availability zone.
184184
* `tags` - (Optional, Map) A mapping of tags to assign to the instance. For tag limits, please refer to [Use Limits](https://intl.cloud.tencent.com/document/product/651/13354).
185185
* `web_node_type_info` - (Optional, List) Visual node configuration.
186186

0 commit comments

Comments
 (0)