AWS EC2 instance scheduler easily

Viewed 983
4 Answers

You can easily make your own scheduler using Amazon CloudWatch Events to trigger an AWS Lambda function on a regular schedule.

  • Amazon CloudWatch Events has the ability to schedule events, such as triggering a Lambda function
  • A Lambda function can do whatever you wish, such as starting/stopping instances based on a tag

See: Creating an Enterprise Scheduler Using AWS Lambda and Tagging

Though its difficult to implement to scratch, you can use ec2-scheduler.template to deploy the CloudFormation stack to provision the required platform to schedule.

This approach is more convenient than implementing it from scratch using a scheduled Lambda function and EC2 SDK.

It is also good to make your own guide based, it takes about a week.

Assuming a developer costs around $ 200 per day for a developer, it will take at least $ 1000 for five days of development. The CloudScheduler service is $ 10 per month, and if you have $ 1000, you can use the service for 100 months, about 4 years.

https://scheduler.gncloud.io/

Service is cheaper than development. Just use the service.

Related