Learn how to test your serverless applications
summary
Explains how to test Lambda code with concrete tools and patterns: use SAM CLI to locally invoke and step through functions, run unit, integration and end to end tests, and provision ephemeral test stacks from SAM templates so environments stay consistent. Recommends polling for final state rather than fixed sleeps, add a dead letter queue and zero retry to surface delivery errors, use pre-traffic hook and post hooks plus canary deploys for safe deploys, and orchestrate test runs with Step Functions.
AI-written summary · about
chapters (18)
- 0:00Test serverless apps
- 1:03What defines serverless
- 3:30Event-driven architecture
- 6:18Sync vs async execution
- 9:52Lambda function components
- 11:40Testing challenges
- 13:27Testing pyramid
- 13:48Unit tests
- 14:30Integration tests
- 16:20Infrastructure as code
- 19:09E2E tests in production
- 20:37Integration best practices
- 23:28Safe deployment with SAM
- 27:23Orchestrate tests with Step Functions
- 29:08Async tests scoping
- 30:53Debug locally with SAM CLI
- 31:56Infrastructure consistency
- 34:06Summary
related talks
51mTaking Serverless to the Next Level
46mServerless Architecture Patterns and Best Practices
30mBuilding serverless applications with infrastructure as code
24mBuilding serverless applications with infrastructure as code
25mBuilding serverless applications with Amazon S3
04mServerless applications, Microservices, AWS
44mA day in the life of a serverless developer
53mHow Serverless Makes Integration TDD a Reality — And Why We Need It
