Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in AWS by (19.1k points)

I am looking at using AWS auto-scaling to scale my infrastructure up and down based on various performance metrics (CPU, etc.). I understand how to set this up; however, I don't like those instances are terminated rather than stopped when it is scaled down. This means that when I scale back up, I have to start from scratch with a new instance and re-install my software, etc. I'd rather just start/stop my instances as needed rather than create/terminate. Is there a way to do this?

1 Answer

+1 vote
by (44.3k points)

You can not stop the termination, but you can suspend using the following steps:

  • Open EC2 console https://console.aws.amazon.com/ec2/.
  • On the navigation pane, under Auto Scaling, choose Auto Scaling Groups.
  • Select the Auto Scaling group which you want to edit.
  • On the Details tab, choose Edit.
  • For Suspended Processes, select the process to suspend. (e.g. will have "Terminate" as an option)
  • Then click Save

For further information, check out this documentation.

https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-suspend-resume-processes.html#as-suspend-resume

by (110 points)
Thank you kodee, it really solved my issue. Since I did not want to delete the auto scaling, I followed your suggestion :)

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...