Skip to content

Commit

Permalink
resource/alicloud_instance: remove default value for system_disk_cate…
Browse files Browse the repository at this point in the history
…gory.
  • Loading branch information
ChenHanZhang committed Mar 15, 2024
1 parent ff0c2f4 commit 123c66b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion alicloud/resource_alicloud_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ func resourceAliCloudInstanceCreate(d *schema.ResourceData, meta interface{}) er
request["SystemDisk.PerformanceLevel"] = v
}

request["SystemDisk.Category"] = "cloud_efficiency"
if v, ok := d.GetOk("system_disk_category"); ok {
request["SystemDisk.Category"] = v
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/instance.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The following arguments are supported:
* `instance_name` - (Optional) The name of the ECS. This instance_name can have a string of 2 to 128 characters, must contain only alphanumeric characters or hyphens, such as "-",".","_", and must not begin with a hyphen, and must not begin with http:// or https://. If not specified,
Terraform will autogenerate a default name is `ECS-Instance`.
* `allocate_public_ip` - (Deprecated) It has been deprecated from version "1.7.0". Setting "internet_max_bandwidth_out" larger than 0 can allocate a public ip address for an instance.
* `system_disk_category` - (Optional, ForceNew) Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Default to `cloud_efficiency`. Valid values `cloud_auto` Available since 1.184.0+.
* `system_disk_category` - (Optional, ForceNew) Valid values are `ephemeral_ssd`, `cloud_efficiency`, `cloud_ssd`, `cloud_essd`, `cloud`, `cloud_auto`, `cloud_essd_entry`. only is used to some none I/O optimized instance. Valid values `cloud_auto` Available since 1.184.0+.
* `system_disk_name` - (Optional, Available since 1.101.0) The name of the system disk. The name must be 2 to 128 characters in length and can contain letters, digits, periods (.), colons (:), underscores (_), and hyphens (-). It must start with a letter and cannot start with http:// or https://.
* `system_disk_description` - (Optional, Available since 1.101.0) The description of the system disk. The description must be 2 to 256 characters in length and cannot start with http:// or https://.
* `system_disk_size` - (Optional) Size of the system disk, measured in GiB. Value range: [20, 500]. The specified value must be equal to or greater than max{20, Imagesize}. Default value: max{40, ImageSize}.
Expand Down

0 comments on commit 123c66b

Please sign in to comment.