Search⌘ K
AI Features

Generating Test Events

Explore how to create sample test events using the SAM CLI to simulate AWS service triggers like S3 and API Gateway. Understand event structures to extract necessary data and improve your Lambda function testing.

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 ...