Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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.4k 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

Is there a way to STOP not TERMINATE instances using auto-scaling in AWS?
Intellipaat-community
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

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

Browse Categories

...