Skill 3.2.5
Test event-driven applications
Key Concepts
Sample events can be generated with sam local generate-event and fed to functions locally, and the EventBridge console's sandbox lets you test an event pattern against a sample event before creating the rule. aws events put-events sends test events to a bus in a test environment.
To observe asynchronous results, tests can poll the expected outcome, such as a DynamoDB item or an S3 object, or add a temporary rule that copies events to a CloudWatch log group or SQS queue for inspection. EventBridge archive and replay re-sends real past events to test fixes, and the Schema Registry provides typed event bindings.