Skip to content

Commit cc67896

Browse files
committed
update length of instance name
1 parent 30d5227 commit cc67896

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.changelog/3101.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_instance: update the length limit of `instance_name`
3+
```

tencentcloud/services/cvm/resource_tc_instance_set.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func ResourceTencentCloudInstanceSet() *schema.Resource {
6363
Optional: true,
6464
Default: "Terraform-CVM-Instance",
6565
ValidateFunc: tccommon.ValidateStringLengthInRange(2, 128),
66-
Description: "The name of the instance. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.",
66+
Description: "The name of the instance. The max length of instance_name is 128, and default value is `Terraform-CVM-Instance`.",
6767
},
6868
"instance_type": {
6969
Type: schema.TypeString,

website/docs/r/instance_set.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The following arguments are supported:
8888
* `hostname` - (Optional, String) The hostname of the instance. Windows instance: The name should be a combination of 2 to 15 characters comprised of letters (case insensitive), numbers, and hyphens (-). Period (.) is not supported, and the name cannot be a string of pure numbers. Other types (such as Linux) of instances: The name should be a combination of 2 to 60 characters, supporting multiple periods (.). The piece between two periods is composed of letters (case insensitive), numbers, and hyphens (-). Modifying will cause the instance reset.
8989
* `instance_charge_type` - (Optional, String) The charge type of instance. Only support `POSTPAID_BY_HOUR`.
9090
* `instance_count` - (Optional, Int) The number of instances to be purchased. Value range:[1,100]; default value: 1.
91-
* `instance_name` - (Optional, String) The name of the instance. The max length of instance_name is 60, and default value is `Terraform-CVM-Instance`.
91+
* `instance_name` - (Optional, String) The name of the instance. The max length of instance_name is 128, and default value is `Terraform-CVM-Instance`.
9292
* `instance_type` - (Optional, String) The type of the instance.
9393
* `internet_charge_type` - (Optional, String, ForceNew) Internet charge type of the instance, Valid values are `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`, `BANDWIDTH_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`. This value does not need to be set when `allocate_public_ip` is false.
9494
* `internet_max_bandwidth_out` - (Optional, Int) Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). This value does not need to be set when `allocate_public_ip` is false.

0 commit comments

Comments
 (0)