Skip to content

Commit 8fcae14

Browse files
gitmknanonymous
andauthored
feat: support hssd (#1849)
* feat: support hssd * feat: add changelog --------- Co-authored-by: anonymous <anonymous@mail.org>
1 parent 935c4fe commit 8fcae14

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

.changelog/1849.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: disk_type supports `CLOUD_HSSD` type
3+
```

tencentcloud/extension_cvm.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const (
3131
CVM_DISK_TYPE_CLOUD_SSD = "CLOUD_SSD"
3232
CVM_DISK_TYPE_CLOUD_PREMIUM = "CLOUD_PREMIUM"
3333
CVM_DISK_TYPE_CLOUD_BSSD = "CLOUD_BSSD"
34+
CVM_DISK_TYPE_CLOUD_HSSD = "CLOUD_HSSD"
3435

3536
CVM_PLACEMENT_GROUP_TYPE_HOST = "HOST"
3637
CVM_PLACEMENT_GROUP_TYPE_SW = "SW"

tencentcloud/extension_elasticsearch.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ var ES_NODE_TYPE = []string{
5959
var ES_NODE_DISK_TYPE = []string{
6060
CVM_DISK_TYPE_CLOUD_SSD,
6161
CVM_DISK_TYPE_CLOUD_PREMIUM,
62+
CVM_DISK_TYPE_CLOUD_HSSD,
6263
}
6364

6465
var ES_RENEW_FLAG = []string{

tencentcloud/resource_tc_elasticsearch_instance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ func resourceTencentCloudElasticsearchInstance() *schema.Resource {
247247
Optional: true,
248248
Default: CVM_DISK_TYPE_CLOUD_SSD,
249249
ValidateFunc: validateAllowedStringValue(ES_NODE_DISK_TYPE),
250-
Description: "Node disk type. Valid values are `CLOUD_SSD` and `CLOUD_PREMIUM`. The default value is `CLOUD_SSD`.",
250+
Description: "Node disk type. Valid values are `CLOUD_SSD` and `CLOUD_PREMIUM`, `CLOUD_HSSD`. The default value is `CLOUD_SSD`.",
251251
},
252252
"disk_size": {
253253
Type: schema.TypeInt,

website/docs/r/elasticsearch_instance.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ The `node_info_list` object supports the following:
8787
* `node_num` - (Required, Int) Number of nodes.
8888
* `node_type` - (Required, String) Node specification, and valid values refer to [document of tencentcloud](https://intl.cloud.tencent.com/document/product/845/18376).
8989
* `disk_size` - (Optional, Int) Node disk size. Unit is GB, and default value is `100`.
90-
* `disk_type` - (Optional, String) Node disk type. Valid values are `CLOUD_SSD` and `CLOUD_PREMIUM`. The default value is `CLOUD_SSD`.
90+
* `disk_type` - (Optional, String) Node disk type. Valid values are `CLOUD_SSD` and `CLOUD_PREMIUM`, `CLOUD_HSSD`. The default value is `CLOUD_SSD`.
9191
* `encrypt` - (Optional, Bool) Decides to encrypt this disk or not.
9292
* `type` - (Optional, String) Node type. Valid values are `hotData`, `warmData` and `dedicatedMaster`. The default value is 'hotData`.
9393

0 commit comments

Comments
 (0)