Building AWS Lambdas in Python
Covers how to use AWS Lambda Powertools to enrich your existing or new AWS Lambda functions.
Basic Payment lambda
Below is what a lambda would normally look like being used with an API Gateway Proxy Event
Setting Up AWS Lambda Powertools
Logging
Adding logging
Tracing
Adding tracing
Metrics
Adding metrics
Data Classes
Using Data Classes for standard AWS Event types
Type Hinting
Adding type hinting
Idempotent
Making our lambda retry safe
Exception Handling
Adding exception handling
Validation
Adding input and output validation
Paramters
Loading parameters from AWS Parameter Store
Modular
Making the lambda modular
Unit Testing
TODO: Add Unit tesitng of lambda
Event hadler
TODO: Add example of the api gateway event handler