google-compute-engine"/>
  • 11
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

Is there a way to automatically apply Labels to instances that are launched by a GCE Managed Instance Group (aka. Instance Group Manager)? I see that you can add Network Tags in the Instance Template (properties.tags), but I don’t see a way to add Labels for use in searching for labeled instances using instances/list.

A workaround would be to manually call setLabels on instances from the Instance Template’s startup-script.

In AWS EC2, the equivalent would be to add Tags to an AutoScalingGroup with PropagateAtLaunch: true.

Warm tip !!!

This article is reproduced from Stack Exchange / Stack Overflow, please click

Trending Tags