Lambda falls under “Compute” service in AWS (Amazon Web Services). Using Lambda we can code without provisioning or managing servers. In this article, we will see how to create a simple Lambda function that can start/stop an EC2 instance.
Source: LXer – AWS Lambda Function to Start and Stop an EC2 Instance