I am in need of knowing when an instance is supposed to be shutdown by the autoscale, as I want the instances to register themselves and deregister themselves from a given service.
I know that the autoscale can start/stop any instance any time so I need the instances to be notified of when are they going to be shutdown.
Is there anyway of achieving this behaviour?