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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -