Cloud Infra and Dev Ops

Today we will learn how we can deploy a Node.js application to AWS Lambda with the help of Serverless Framework. We will combine AWS API Gateway with AWS Lambda, which will work as the entry point of the Lambda function.

AWS Lambda is a pay-per-use serverless service. You just deploy your code to AWS, and they handle the rest. It scales the node server automatically and has no downtime. AWS Lambda can be said as, Function as a Service. You deploy the code, and it gets invoked when called, processes, and returns.

An EC2 instance is a virtual server in Amazon’s Elastic Compute Cloud (EC2) for running applications on the Amazon Web Services (AWS) infrastructure.

In this blog post, will see few examples of using NodeJS EC2 API.