Automatically start and stop an EC2 instance with Serverless
· 5 min read
Scheduled EC2 start/stop: Serverless, AWS SSM, IAM roles
This is a Serverless Framework project which will automatically start and stop EC2 instances.
It creates two scheduled events. One event will start a list of EC2 instances and the other will stop a list of EC2 instances. The list of instances is defined in the AWS Systems Manager Parameter Store. The project also sets up the necessary IAM policies. No manual AWS configuration is required!