This tool monitors an Instance Group for changes. The moment the given Instance Template
is no longer part of the monitored Instance Group, on-shutdown is run. Afterwards
the Instance is deleted via an API call.
It does not currently trigger if:
Instance is deleted
Instance is restarted
Instance is re-created during autohealing
Motivation
Google Shutdown Scripts are unreliable and only run for 60-90s max.