The steps below show how to setup an AWS Lambda function using AWS SAM CLI for Python. The setup takes one through the process of initialization, building, deploying and debugging a AWS Lambda function. The default SAM template also creates an API endpoint for testing the Lambda function. This testing can be done locally, and after deploying the function to AWS. While most of the instructions are easily found on the AWS docs, the instructions for debugging through VS Code and testing using Postman are not well-documented. Please install SAM CLI and read the AWS SAM python deployment guide.
sam init
This initializes the AWS SAM CLI using the configu