Best Ways to Automatically Stop and Start EC2 Instances?

0
5
Asked By CloudHopper92 On

Hey everyone! I'm looking for an easy way to automatically stop my EC2 instances at night and start them back up in the morning without having to do it manually. These instances are just for development purposes, so keeping them running all day isn't necessary and it's getting pretty expensive. I checked out the AWS scheduler feature, but it seems more complicated than I need. I'm hoping for something straightforward and maybe visually appealing too. If anyone has experience with this or knows of simpler solutions—bonus points if it can work with other cloud services—I'd really appreciate your tips! Thanks!

3 Answers

Answered By TechTinker13 On

You can also use EventBridge to create a cron job that triggers a Lambda function to stop and start your instances based on tags. It's super easy once you set it up.

Answered By WiseOwl42 On

Check out Resource Scheduler. You can tag your EC2 instances and then schedule them to stop/start based on those tags. It’s pretty handy! Here’s the docs for a quick setup: https://docs.aws.amazon.com/systems-manager/latest/userguide/quick-setup-scheduler.html.

Answered By SunnySkies12 On

I recommend trying Server Scheduler. It’s lightweight and manages stopping, starting, and even scaling your instances without much hassle. It’s way easier than using the full AWS Instance Scheduler. If you're still interested in AWS tools, setting up a Lambda function with EventBridge to manage your instances is a straightforward option. It should take about 15 minutes to set up, and after that, you can forget about it! Simple and efficient.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.