AWS Lambda Function to Start and Stop an EC2 Instance
Lambda falls under “Compute” service in AWS (Amazon Web Services). Using Lambda we can code without provisioning or managing servers. Lambda automatically runs our code without requiring us to provision or manage servers. We just need to write the code and upload it to the Lambda Function. Lambda executes the code only when needed. It grows automatically supporting from a few requests to thousands of requests. We are charged for every 100ms our code executes and the number of times it is triggered. We are charged only for the compute time our code consumes and not charged when the code is not being executed. Click here to read the complete version of this article written by me available on howtoforge .