July 2018
Intermediate to advanced
350 pages
8h 47m
English
Now that we have created the SAM template, let's look at how we can test the Amazon API Gateway and AWS Lambda setup locally on your workstation before we package and deploy it to the AWS Lambda platform.
The AWS SAM Local or SAM CLI provides a local environment that simulates the AWS environment locally on your workstation.
Let's start an API endpoint locally through the SAM CLI, through which we will invoke the AWS Lambda function locally on the workstation. The API endpoint that the SAM CLI creates also supports the hot reloading feature, which enables you to test the AWS Lambda functions that need to restart the API endpoint. Running the following command will create the API endpoint locally. It uses ...