Lambda functions are meant to be triggered by various events - API Gateway call, uploading a file to S3, adding an item to a DynamoDB table etc.
In this lesson we're going to learn how to call a lambda function locally with a custom event when building it with AWS Serverless Application Framework using the SAM CLI.