Automatically Scheduling Multiple EC2 Instances.
Steps to run the project:
1-Create multiple EC2 instances.
2-Create a policy. (Note: I have attached the JSON template in the repository)
3-Attach roles to that policy. ( for use case select lambda)
4-Create lambda functions for starting and stopping the EC2 instances. (Note : I have attached the code for the lambda function in the repository)
5- For Automation,go to Cloudwatch.
6-Create rule by providing cron expression.
The EC2 are now scheduled according to the requirement.