Generating Test Events
Explore how to generate sample AWS Lambda events using the SAM CLI to understand and test function triggers effectively. This lesson guides you through creating realistic event data for various AWS services, focusing on extracting key information from S3 put events to streamline your serverless application testing.
We'll cover the following...
We'll cover the following...
Events coming from S3 will have a different structure to those coming from API Gateway. When you started experimenting with API events in Chapter 6, you used a nice trick to understand the structure: create an empty function that just logs the event to CloudWatch at the start. You could do something ...