v2.19.0
Summary
In this new release we added:
- support for Amazon VPC Lattice integrations
- a new way to decode nested messages from SQS events
- tons of documentation updates for the Idempotency utility
⭐ Huge thanks to our new contributor: @rafaelgsr!
Amazon VPC Lattice integration
Docs: event handler, parser
Amazon VPC Lattice is a fully managed application networking service that you use to connect, secure, and monitor the services for your application across multiple accounts and virtual private clouds (VPC). You can register your Lambda functions as targets with a VPC Lattice target group, and configure a listener rule to forward requests to the target group for your Lambda function.
We have added support for handling events from Amazon VPC Lattice in the event handler, using the same API as existing event handlers. This includes important functionalities like CORS support and response header serialization.
In addition, we added the corresponding Pydantic Parser model for the VPC Lattice event:
Decoding nested messages from SQS events
SQS events can encapsulate events originated in other AWS resources, such as S3 and SNS. To improve the experience when creating Lambda functions to handle those events, we created a new method to decoded those nested events easily. For instance, this is how you access the nested S3 event from an SQS event:
Changes
🌟New features and non-breaking changes
- feat(event_source): decode nested messages on SQS events (#2349) by @rafaelgsr
- feat(event_handler): add new Amazon VPC Lattice resolver (#2601) by @leandrodamascena
- feat(parser): add support to the new Amazon VPC Lattice model (#2584) by @leandrodamascena
📜 Documentation updates
- feat(event_handler): add new Amazon VPC Lattice resolver (#2601) by @leandrodamascena
- feat(parser): add support to the new Amazon VPC Lattice model (#2584) by @leandrodamascena
- docs(i-made-this): added new article on idempotency (#2582) by @rubenfonseca
- docs(i-made-this): added new article on idempotency with CDK and Powertools (#2569) by @ran-isenberg
- docs(idempotency): split snippets, improve wording and lint examples (#2492) by @leandrodamascena
- refactor(event_source): convert functional tests to unit tests (#2506) by @leandrodamascena
- chore(analytics): update docs base origin url (#2560) by @hjgraca
🐛 Bug and hot fixes
- fix(e2e): fix idempotency tests (#2576) by @rubenfonseca
🔧 Maintenance
- chore(deps-dev): bump aws-cdk from 2.85.0 to 2.86.0 (#2613) by @dependabot
- chore(deps-dev): bump mypy-boto3-ssm from 1.26.97 to 1.26.162 (#2606) by @dependabot
- chore(deps-dev): bump mypy-boto3-s3 from 1.26.155 to 1.26.163 (#2608) by @dependabot
- chore(deps-dev): bump mypy-boto3-lambda from 1.26.157 to 1.26.163 (#2607) by @dependabot
- chore(deps): bump docker/setup-buildx-action from 2.7.0 to 2.8.0 (#2604) by @dependabot
- chore(deps): bump release-drafter/release-drafter from 5.23.0 to 5.24.0 (#2603) by @dependabot
- chore(ci): enable Ruff autofix rules (#2599) by @leandrodamascena
- chore(ci): enable Ruff rules ISC, I001, B018 and fix the errors (#2597) by @leandrodamascena
- chore(ci): enable Ruff rule COM812 and fix the errors (#2595) by @leandrodamascena
- chore(ci): enable Ruff rules PLW, PLR, PLC and PLE and fix the errors (#2593) by @leandrodamascena
- chore(ci): enable Ruff rule ERA001 and fix errors (#2591) by @leandrodamascena
- chore(deps-dev): bump ruff from 0.0.272 to 0.0.275 (#2586) by @dependabot
- chore(ci): enable Ruff rule E501 and fix errors (#2587) by @leandrodamascena
- chore(ci): replace flake8 with Ruff as a linter (#2495) by @leandrodamascena
- chore(deps): bump pypa/gh-action-pypi-publish from 1.8.6 to 1.8.7 (#2573) by @dependabot
- chore(deps-dev): bump mypy from 1.4.0 to 1.4.1 (#2574) by @dependabot
- docs(idempotency): split snippets, improve wording and lint examples (#2492) by @leandrodamascena
- chore(deps-dev): bump mkdocs-material from 9.1.16 to 9.1.17 (#2564) by @dependabot
- chore(deps): bump ossf/scorecard-action from 2.1.3 to 2.2.0 (#2563) by @dependabot
- refactor(event_source): convert functional tests to unit tests (#2506) by @leandrodamascena
- chore(analytics): update docs base origin url (#2560) by @hjgraca
- chore(deps-dev): bump pytest from 7.3.2 to 7.4.0 (#2557) by @dependabot
This release was made possible by the following contributors:
@dependabot, @dependabot[bot], @github-actions, @github-actions[bot], @hjgraca, @leandrodamascena, @rafaelgsr, @ran-isenberg and @rubenfonseca