amazon web services - Does reducing desired instances in (AWS::AutoScaling::AutoScalingGroup) terminates the instance without stopping it -


i have created custom ami wherein service xxx started when aws instance gets started , service xxx gets stopped when aws instance gets stopped. have wrapped ami under cloudformation's aws::autoscaling::autoscalinggroup. when new instance gets added using auto scaling group xxx service gets started on it. when reduce number of desired instances xxx not stopped.

so reducing desired numinstances in autoscaling group terminates instance without stopping it?

how notification stop xxx service before instance termination?

yes, when auto scaling scales down/in, terminates instances (it not stop them).

to react such event, can use lifecycle hooks allow perform custom actions auto scaling launches or terminates instances.


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -