Reputation: 729
I want to run a script when the instances got terminated during autoscaling. basically, I want to do this for two reason. 1. Remove from the monitoring (Third party tool via API) 2. Delete the record set.
Upvotes: 0
Views: 670
Reputation: 3984
You want to use an Autoscaling Lifecycle Hook. Check out the documentation here.
Upvotes: 2