I'm using gcloud (command line) and I need to retrieve a list of instance-groups that an instance is a member of. I.e. I have the instance name and I need the instance group.
This retrieves a list of instances in a specified instance-group (but I need it the other way around):
gcloud preview instance-groups --zone $ZONE instances --group $INSTANCE_GRP list