0
0
llucycodes42
This code creates a cloudstack_disk resource with the given name, attaches it to a virtual machine and sets the disk_offering to custom. The size is set to 50 and the zone is set to zone-1.
Shortcut: tf_cloudstack_disk
resource "cloudstack_disk" "${myResourceName}" {
name = "my-${myResourceName}"
attach = "true"
disk_offering = "custom"
size = 50
virtual_machine = "server-1"
zone = "zone-1"
}