Updated on 2023-12-21 GMT+08:00
Adding an EVS Disk
Application Scenario
Create an EVS disk and attach it to the ECS.
Related Resources
Procedure
- Add the following information to the main.tf file:
resource "huaweicloud_evs_volume" "myvolume" { name = "myvolume" availability_zone = data.huaweicloud_availability_zones.myaz.names[0] volume_type = "SAS" size = 10 } resource "huaweicloud_compute_volume_attach" "attached" { instance_id = huaweicloud_compute_instance.myinstance.id volume_id = huaweicloud_evs_volume.myvolume.id }
- Run terraform plan to view resources.
- After you confirm that the resource information is correct, run terraform apply to start EVS creation.
- After the EVS disk is attached to the ECS, you need to initialize the disk before you use it.
Parent topic: Elastic Cloud Server (ECS)
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.