krystal / terraform-provider-katapult

Terraform Provider for Katapult.
https://registry.terraform.io/providers/krystal/katapult/latest/docs
MIT License
5 stars 2 forks source link

Add support for specifying system disks and their sizes when creating a virtual machine #83

Closed jimeh closed 1 year ago

jimeh commented 1 year ago

We want to be able to customize the list of disks and their sizes when creating a new virtual machine. By default machines are given a single system disk with a size determined by the chosen virtual machine package.

The build spec endpoint we use to create virtual machines, supports a override list of system disks. This allows overriding the default system disk behavior, to create one or more system disks with custom sizes.

Example from the API client's buildspec tests: https://github.com/krystal/go-katapult/blob/5a0ac4d078859baa3e69b1cf019a6d8473717812/buildspec/virtual_machine_spec_test.go#L57-L85