Local Testing – AWS SAM Local - Serverless Architectures with AWS Lambda

Local Testing – AWS SAM Local

Along with AWS SAM, AWS SAM Local offers additional command line tools that you can add to AWS SAM to test your serverless functions and applications locally before deploying them to AWS. AWS SAM Local uses Docker to enable you to quickly test your developed Lambda functions using popular event sources (for example, Amazon S3, DynamoDB, etc.). You can locally test an API you define in your SAM template before it is created in API Gateway. You can also validate the AWS SAM template that you created. By enabling these capabilities to run against Lambda functions still residing within your developer workstation, you can do things like view logs locally, step through your code in a debugger, and quickly iterate changes without having to deploy a new code package to AWS.