Assigned
Status Update
Comments
[Deleted User] <[Deleted User]> #2
I have forwarded this request to the engineering team. We will update this issue with any progress updates and a resolution.
Best Regards,
Josh Moyer
Google Cloud Platform Support
Best Regards,
Josh Moyer
Google Cloud Platform Support
pe...@google.com <pe...@google.com> #3
This is not only useful for IP addresses, but also for many other resources. I understand that names are currently used as identifiers, so this request is probably not trivial to implement. Maybe distinguishing between a (numeric, automatically generated) identifier and a (textual) label is the way to go?
Description
What you would like to accomplish:
The aim is to create an Instance Group using Google Deployment Manager where all instances in the group have a display enabled for remote desktop. To do this I need to be able to create an instanceTemplate object with displayDevice configured with enableDisplay:true. I would then use this template when creating the instanceGroup.
In UI I can create an instance template of the right type and when viewing the REST Alternative is shows
{
"name": "my-template",
"description": "",
"properties": {
"machineType": "n1-standard-2",
"displayDevice": {
"enableDisplay": true
},
....
}
However if I use displayDevice in my instanceTemplate within a Deployment Manager template it doesn't set displayDevice. This, I believe, is because the REST API for instanceTemplate is missing displayDevice:
How this might work:
Extend the REST API for instanceTemplates and then add this support through into deployment manager, e.g.
- name: my-template
type: compute.v1.instanceTemplates
properties:
properties:
machineType: n1-standard-2
displayDevice:
enableDisplay: true
See attached file as a sample
gcloud deployment-manager deployments create mytest --template mydeploy.yml.jinja
If applicable, reasons why alternative solutions are not sufficient:
There is no other full automated alternative that I can find. You can create individual instances with Deployment Manager and use sourceInstanceTemplate plus setting displayDevice, but this removes the intended function to create an Instance Group that can be scaled up and down.
I could use the command-line
gcloud compute instances update [INSTANCE_NAME] --enable-display-device
but again, this isn't going to work when an Instance Group will change the number of instances over time.
Other information (workarounds you have tried, documentation consulted, etc):