Skip to content

Commit 843740e

Browse files
tongyimingmikatong
andauthored
update cbs wait time && remove emr product_id validate (#1910)
* update cbs wait time && remove emr product_id validate * update emr product_id doc --------- Co-authored-by: mikatong <mikatong@tencent.com>
1 parent af6eb83 commit 843740e

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

tencentcloud/resource_tc_cbs_storage.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func resourceTencentCloudCbsStorageCreate(d *schema.ResourceData, meta interface
255255
}
256256

257257
// must wait for finishing creating disk
258-
err = resource.Retry(readRetryTimeout, func() *resource.RetryError {
258+
err = resource.Retry(10*readRetryTimeout, func() *resource.RetryError {
259259
storage, e := cbsService.DescribeDiskById(ctx, storageId)
260260
if e != nil {
261261
return retryError(e, InternalError)

tencentcloud/resource_tc_emr_cluster.go

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,22 @@ func resourceTencentCloudEmrCluster() *schema.Resource {
7575
Description: "Display strategy of EMR instance.",
7676
},
7777
"product_id": {
78-
Type: schema.TypeInt,
79-
Required: true,
80-
ForceNew: true,
81-
ValidateFunc: validateIntegerInRange(1, 30),
82-
Description: "The product id of EMR instance.",
78+
Type: schema.TypeInt,
79+
Required: true,
80+
ForceNew: true,
81+
Description: "Product ID. Different products ID represents different EMR product versions. Value range:\n" +
82+
"- 16: represents EMR-V2.3.0\n" +
83+
"- 20: indicates EMR-V2.5.0\n" +
84+
"- 25: represents EMR-V3.1.0\n" +
85+
"- 27: represents KAFKA-V1.0.0\n" +
86+
"- 30: indicates EMR-V2.6.0\n" +
87+
"- 33: represents EMR-V3.2.1\n" +
88+
"- 34: stands for EMR-V3.3.0\n" +
89+
"- 36: represents STARROCKS-V1.0.0\n" +
90+
"- 37: indicates EMR-V3.4.0\n" +
91+
"- 38: represents EMR-V2.7.0\n" +
92+
"- 39: stands for STARROCKS-V1.1.0\n" +
93+
"- 41: represents DRUID-V1.1.0.",
8394
},
8495
"vpc_settings": {
8596
Type: schema.TypeMap,

website/docs/r/emr_cluster.html.markdown

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,19 @@ The following arguments are supported:
6666
* `login_settings` - (Required, Map, ForceNew) Instance login settings.
6767
* `pay_mode` - (Required, Int) The pay mode of instance. 0 represent POSTPAID_BY_HOUR, 1 represent PREPAID.
6868
* `placement` - (Required, Map, ForceNew) The location of the instance.
69-
* `product_id` - (Required, Int, ForceNew) The product id of EMR instance.
69+
* `product_id` - (Required, Int, ForceNew) Product ID. Different products ID represents different EMR product versions. Value range:
70+
- 16: represents EMR-V2.3.0
71+
- 20: indicates EMR-V2.5.0
72+
- 25: represents EMR-V3.1.0
73+
- 27: represents KAFKA-V1.0.0
74+
- 30: indicates EMR-V2.6.0
75+
- 33: represents EMR-V3.2.1
76+
- 34: stands for EMR-V3.3.0
77+
- 36: represents STARROCKS-V1.0.0
78+
- 37: indicates EMR-V3.4.0
79+
- 38: represents EMR-V2.7.0
80+
- 39: stands for STARROCKS-V1.1.0
81+
- 41: represents DRUID-V1.1.0.
7082
* `softwares` - (Required, List: [`String`], ForceNew) The softwares of a EMR instance.
7183
* `support_ha` - (Required, Int, ForceNew) The flag whether the instance support high availability.(0=>not support, 1=>support).
7284
* `time_span` - (Required, Int) The length of time the instance was purchased. Use with TimeUnit.When TimeUnit is s, the parameter can only be filled in at 3600, representing a metered instance.

0 commit comments

Comments
 (0)