Compute: disks
is a required param even when creating an instance from an instance template
#23642
Labels
api: compute
Issues related to the Compute Engine API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: question
Request for information or clarification. Not an issue.
Not sure if this is an actual bug or if this is the intended behaviour and it's more of a feature request.
When using gcloud cli we are perfectly able to create machines using an instance template, and we do not need to specify disks. Because of this, we would expect the same behaviour.
However, the code examples for this use case in the documentation do not include Ruby (https://cloud.google.com/compute/docs/instances/create-vm-from-instance-template#create_a_vm_instance_from_an_instance_template), which indicates that maybe this is indeed a missing feature.
Environment details
Steps to reproduce
Code example
Full backtrace
Also tried setting
disks: instance_template.properties.disks.to_a
to see if I could work around this, but in that case the request also failed with the following error:This suggests that the disks need to be defined all over again, which defeats the purpose of having instance templates.
The text was updated successfully, but these errors were encountered: