In this chapter, we will learn about how to write serverless applications to run on AWS using Node.js, the AWS Serverless Application Model (SAM), how to deploy a serverless application to AWS using the AWS SAM, how to test a serverless application, and how to trigger a serverless application using Amazon API Gateway (HTTP event trigger).
There are multiple ways to create serverless apps on the AWS platform. This chapter covers two of those methods:
- Firstly, we will look into how we can create an AWS Lambda function through the AWS Console, and then test it through the Console.
- Secondly, we will look into how we can create an AWS Lambda function through Visual Studio Code, deploy it using the AWS SAM, integrate it with API Gateway, and test it by making HTTP calls to the Amazon API Gateway endpoint.