DEV Community

Aadit Unni
Aadit Unni

Posted on

Stop/Start EC2 instance on a scheduled basis

[46/100] #100DaysOfCloud Today, I created a scheduled stop for the EC2 instances using a combination of Lambda and CloudWatch Events.

This solution helps reduce operational costs by stopping resources that are not in use and starting resources when their capacity is needed. For example, a company can use Instance Scheduler on AWS in a production environment to automatically stop instances outside of business hours every day. If you leave all of your instances running at full utilization, this solution can result in up to 70% cost savings for those instances that are only necessary during regular business hours (weekly utilization reduced from 168 hours to 50 hours).

You can try do it by yourself by following the steps from the link below: GitHub

Top comments (0)