Skip to content

Draft: Use InstanceID to distinguish unique instances and cleanup stopped

Arran Walker requested to merge ajwalker/use-instance-id into main

Google has two variants of "instance".

  • One is the instance group instance. This might not actually be backed by a real instance.
  • The other is a real virtual machine instance. An instance group instance has this real instance when Instance.Id is not 0.

This change ensures that what we report to the fleeting plugin only ever has a real instance, which is needed, because we need the Instance.Id to determine whether an instance is unique.

If going by the name only, then a new instance with the same name can be created, and this confuses fleeting because it doesn't realise it's new.

Merge request reports