AWS Lambda triggers
- Lets choose an amazon api gateway

- Create a POST request to invoke lambda function and deploy the function
- Refresh the lambda function in aws console

- Now the lamdba function can be invoked as rest api

- We can schedule the lambda function to run from cloudwatch
- Refer Here to schedule lamdba function to run from cloudwatch events
- Now lets create cloud watch event to start ec2 instances at 7:00 am and shutdown ec2 instances and 10:00 pm on every weekday

