Skip to content

Commit ae97ba9

Browse files
author
hellertang
authored
fix create es when use multi az (#695)
1 parent 0d3fe57 commit ae97ba9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tencentcloud/resource_tc_elasticsearch_instance.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@ func resourceTencentCloudElasticsearchInstance() *schema.Resource {
7272
},
7373
"availability_zone": {
7474
Type: schema.TypeString,
75-
Required: true,
75+
Optional: true,
76+
Default: "-",
7677
ForceNew: true,
7778
Description: "Availability zone.",
7879
},
@@ -89,7 +90,8 @@ func resourceTencentCloudElasticsearchInstance() *schema.Resource {
8990
},
9091
"subnet_id": {
9192
Type: schema.TypeString,
92-
Required: true,
93+
Optional: true,
94+
Default: "-",
9395
ForceNew: true,
9496
Description: "The ID of a VPC subnetwork.",
9597
},

0 commit comments

Comments
 (0)