powertools-lambda-python
powertools-lambda-python copied to clipboard
A developer toolkit to implement Serverless best practices and increase developer velocity.
### Use case I am building a Lambda handler for managing CDK CustomResources (https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.custom_resources-readme.html). ### Solution/User Experience As a user of AWS Lambda Powertools I would like to have dataclass...
### Why is this needed? Refactor api_gateway.py by splitting its "monolithic" structure with many classes and methods into multiple files for better code organization and maintainability. ### Which area does...
### Expected Behaviour An OPTIONS preflight should return all "Access-Control-*" headers. ### Current Behaviour https://github.com/aws-powertools/powertools-lambda-python/blob/87d580af0dfaa8007d4e6f6318eef09a3dad206d/aws_lambda_powertools/event_handler/api_gateway.py#L2132 will only fetch `"headers"` from the event. This will return `None` in an ALBEvent with...
**Issue number:** https://github.com/aws-powertools/powertools-lambda-python/issues/2678 ## Summary ### Changes > Please provide a summary of what's being changed ### User experience > Please share what the user experience looks like before and...
### Expected Behaviour I expect the APIGatewayHttpResolver to route my request to the proper annotated function, eg: ``` @app.get("/something") def something(): # does something... ``` ### Current Behaviour For some...
### Use case The built in logger supports adding additional context using the `append_keys` and removing that additional context using the `remove_keys` methods, as documented here: https://docs.powertools.aws.dev/lambda/python/latest/core/logger/#appending-additional-keys Allow the built...
### Is this related to an existing feature request or issue? https://github.com/aws-powertools/powertools-lambda-python/issues/4067 ### Which Powertools for AWS Lambda (Python) utility does this relate to? Other ### Summary We are excited...
### Use case > [!note] > This is a cross-language feature request that was originally brought up under aws-powertools/powertools-lambda-typescript#2337 As a customer who uses canonical logging - aka wide logging...
**Issue number:** #4226 ## Summary This PR introduces a new parameter to keep log levels preserved in third-party loggers that we are copying Powertools config to. ```python from aws_lambda_powertools import...
### Expected Behaviour I often use a logging config for fine grained control over the logging level of third party dependencies in a lambda application. I often need to set...