Skip to content

Commit 1ea8dff

Browse files
author
hellertang
authored
Hotfix/quick fix for es (#696)
* fix create es when use multi az * modify doc
1 parent ae97ba9 commit 1ea8dff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tencentcloud/resource_tc_elasticsearch_instance.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func resourceTencentCloudElasticsearchInstance() *schema.Resource {
7575
Optional: true,
7676
Default: "-",
7777
ForceNew: true,
78-
Description: "Availability zone.",
78+
Description: "Availability zone. When create multi-az es, this parameter must be omitted.",
7979
},
8080
"version": {
8181
Type: schema.TypeString,
@@ -93,7 +93,7 @@ func resourceTencentCloudElasticsearchInstance() *schema.Resource {
9393
Optional: true,
9494
Default: "-",
9595
ForceNew: true,
96-
Description: "The ID of a VPC subnetwork.",
96+
Description: "The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted.",
9797
},
9898
"password": {
9999
Type: schema.TypeString,

website/docs/r/elasticsearch_instance.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ resource "tencentcloud_elasticsearch_instance" "foo" {
4444

4545
The following arguments are supported:
4646

47-
* `availability_zone` - (Required, ForceNew) Availability zone.
4847
* `node_info_list` - (Required) Node information list, which is used to describe the specification information of various types of nodes in the cluster, such as node type, node quantity, node specification, disk type, and disk size.
4948
* `password` - (Required) Password to an instance.
50-
* `subnet_id` - (Required, ForceNew) The ID of a VPC subnetwork.
5149
* `version` - (Required) Version of the instance. Valid values are `5.6.4`, `6.4.3`, `6.8.2` and `7.5.1`.
5250
* `vpc_id` - (Required, ForceNew) The ID of a VPC network.
51+
* `availability_zone` - (Optional, ForceNew) Availability zone. When create multi-az es, this parameter must be omitted.
5352
* `basic_security_type` - (Optional) 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`.
5453
* `charge_period` - (Optional, ForceNew) The tenancy of the prepaid instance, and uint is month. NOTE: it only works when charge_type is set to `PREPAID`.
5554
* `charge_type` - (Optional, ForceNew) The charge type of instance. Valid values are `PREPAID` and `POSTPAID_BY_HOUR`.
@@ -58,6 +57,7 @@ The following arguments are supported:
5857
* `license_type` - (Optional) License type. Valid values are `oss`, `basic` and `platinum`. The default value is `platinum`.
5958
* `multi_zone_infos` - (Optional, ForceNew) Details of AZs in multi-AZ deployment mode (which is required when deploy_mode is `1`).
6059
* `renew_flag` - (Optional, 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`.
60+
* `subnet_id` - (Optional, ForceNew) The ID of a VPC subnetwork. When create multi-az es, this parameter must be omitted.
6161
* `tags` - (Optional) 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).
6262
* `web_node_type_info` - (Optional) Visual node configuration.
6363

0 commit comments

Comments
 (0)