Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 4, 2025

Bumps aws-lambda-powertools from 2.35.1 to 3.18.0.

Release notes

Sourced from aws-lambda-powertools's releases.

v3.18.0

Summary

This release adds support for files media types in our OpenAPI utility. We also improved our Parser utility by adding new models for AppSync Events.

⭐️ Congrats to @​oyiz-michael and @​sdangol for contributing to this project for the first time!

Working with form data

Docs

You can use the Form type to tell the Event Handler that a parameter expects form data. This automatically sets the correct OpenAPI schema for application/x-www-form-urlencoded requests.

Changes

🌟New features and non-breaking changes

📜 Documentation updates

🔧 Maintenance

... (truncated)

Changelog

Sourced from aws-lambda-powertools's changelog.

[v3.18.0] - 2025-07-29

Documentation

  • event_handler: add section about Pydantic serialization (#7049)
  • event_handler: enhance documentation on query/header parameters behavior (#7000)
  • parameters: fix typo in transform auto instruction (#7017)
  • parser: fix a a typo in SqsEnvelope (#7052)

Features

  • event_handler: add support for form data in OpenAPI utility (#7028)
  • metrics: add runtime validations for the metric name (#7026)
  • parser: add AppSync Events models (#6999)
  • typing: add tenant_id property (#6985)

Maintenance

  • version bump
  • ci: new pre-release 3.17.1a4 (#7018)
  • ci: improve feature flags UA (#7051)
  • ci: new pre-release 3.17.1a8 (#7045)
  • ci: new pre-release 3.17.1a9 (#7054)
  • ci: new pre-release 3.17.1a7 (#7038)
  • ci: new pre-release 3.17.1a0 (#6989)
  • ci: new pre-release 3.17.1a1 (#6997)
  • ci: add a new workflow to build docs in new PRs (#7002)
  • ci: new pre-release 3.17.1a2 (#7008)
  • ci: new pre-release 3.17.1a6 (#7029)
  • ci: new pre-release 3.17.1a3 (#7014)
  • ci: new pre-release 3.17.1a5 (#7025)
  • ci: remove closed-issue and opened-pr workflows (#7047)
  • deps: update aws-powertools/actions requirement to 5ae7c190d6b51491bb14f593c3509c1bcbf7a3c1 (#7034)
  • deps-dev: bump pytest-asyncio from 0.26.0 to 1.1.0 (#6995)
  • deps-dev: bump boto3-stubs from 1.39.8 to 1.39.9 (#7011)
  • deps-dev: bump boto3-stubs from 1.39.11 to 1.39.12 (#7027)
  • deps-dev: bump testcontainers from 4.10.0 to 4.12.0 (#7021)
  • deps-dev: bump boto3-stubs from 1.39.7 to 1.39.8 (#7006)
  • deps-dev: bump ruff from 0.12.3 to 0.12.4 (#7005)
  • deps-dev: bump aws-cdk from 2.1021.0 to 2.1022.0 (#7031)
  • deps-dev: bump aws-cdk-lib from 2.206.0 to 2.207.0 (#7035)
  • deps-dev: bump coverage from 7.9.2 to 7.10.0 (#7033)
  • deps-dev: bump sentry-sdk from 2.33.0 to 2.33.2 (#7023)
  • deps-dev: bump aws-cdk-lib from 2.205.0 to 2.206.0 (#6996)
  • deps-dev: bump boto3-stubs from 1.39.4 to 1.39.7 (#6994)
  • deps-dev: bump aws-cdk-aws-lambda-python-alpha from 2.205.0a0 to 2.206.0a0 (#6993)
  • deps-dev: bump aws-cdk from 2.1020.2 to 2.1021.0 (#6992)
  • deps-dev: bump boto3-stubs from 1.39.12 to 1.39.13 (#7036)
  • deps-dev: bump ruff from 0.12.4 to 0.12.5 (#7032)
  • deps-dev: bump sentry-sdk from 2.32.0 to 2.33.0 (#6988)
  • deps-dev: bump aws-cdk-aws-lambda-python-alpha from 2.204.0a0 to 2.205.0a0 (#6986)

... (truncated)

Upgrade guide

Sourced from aws-lambda-powertools's upgrade guide.


title: Upgrade guide description: Guide to update between major Powertools for AWS Lambda (Python) versions

End of support v2

!!! warning "On March 25st, 2025, Powertools for AWS Lambda (Python) v2 reached end of support and will no longer receive updates or releases. If you are still using v2, we strongly recommend you to read our upgrade guide and update to the latest version."

Given our commitment to all of our customers using Powertools for AWS Lambda (Python), we will keep Pypi{target="_blank"} v2 releases and documentation 2.x versions to prevent any disruption.

Migrate to v3 from v2

!!! info "We strongly encourage you to migrate to v3. However, if you still need to upgrade from v1 to v2, you can find the upgrade guide."

We've made minimal breaking changes to make your transition to v3 as smooth as possible.

Quick summary

Area Change Code change required
Pydantic We have removed support for Pydantic v1 No
Parser We have replaced DynamoDBStreamModel AttributeValue with native Python types Yes
Parser We no longer export Pydantic objects from parser.pydantic. Yes
Lambda layer Lambda layers are now compiled according to the specific Python version and architecture No
Event Handler We have deprecated the get_header_value function. Yes
Batch Processor @batch_processor and @async_batch_processor decorators are now deprecated Yes
Event Source Data Classes We have updated default values for optional fields. Yes
Parameters The default cache TTL is now set to 5 minutes No
Parameters The config parameter is deprecated in favor of boto_config Yes
JMESPath Functions The extract_data_from_envelope function is deprecated in favor of query Yes
Types file We have removed the type imports from the shared/types.py file Yes

First Steps

Before you start, we suggest making a copy of your current working project or create a new branch with git.

  1. Upgrade Python to at least v3.9.
  2. Ensure you have the latest version via Lambda Layer or PyPi{target="_blank"}.
  3. Review the following sections to confirm if you need to make changes to your code.

Drop support for Pydantic v1

!!! note "No code changes required"

As of June 30, 2024, Pydantic v1 has reached its end-of-life, and we have discontinued support for this version. We now exclusively support Pydantic v2.

Use Pydantic v2 Migration Guide{target="_blank"} to migrate your custom Pydantic models to v2.

... (truncated)

Commits
  • b8e44d2 chore: version bump
  • ecbae96 chore(ci): new pre-release 3.17.1a9 (#7054)
  • e51b767 docs(parser): fix a a typo in SqsEnvelope (#7052)
  • 2cedb72 chore(ci): improve feature flags UA (#7051)
  • d017744 docs(event_handler): add section about Pydantic serialization (#7049)
  • 5999346 chore(deps-dev): bump boto3-stubs from 1.39.13 to 1.39.14 (#7042)
  • e541c83 chore(ci): new pre-release 3.17.1a8 (#7045)
  • 9a9f9e3 chore(ci): changelog rebuild (#7048)
  • a928277 chore(ci): remove closed-issue and opened-pr workflows (#7047)
  • c83d15e feat(event_handler): add support for form data in OpenAPI utility (#7028)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [aws-lambda-powertools](https://github.com/aws-powertools/powertools-lambda-python) from 2.35.1 to 3.18.0.
- [Release notes](https://github.com/aws-powertools/powertools-lambda-python/releases)
- [Changelog](https://github.com/aws-powertools/powertools-lambda-python/blob/develop/CHANGELOG.md)
- [Upgrade guide](https://github.com/aws-powertools/powertools-lambda-python/blob/develop/docs/upgrade.md)
- [Commits](aws-powertools/powertools-lambda-python@v2.35.1...v3.18.0)

---
updated-dependencies:
- dependency-name: aws-lambda-powertools
  dependency-version: 3.18.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Aug 4, 2025
@sonarqubecloud
Copy link

sonarqubecloud bot commented Aug 4, 2025

@github-actions
Copy link

github-actions bot commented Aug 4, 2025

💥 Something went wrong while deploying the pull request environment.
Check Output Logs

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Aug 18, 2025

Superseded by #1012.

@dependabot dependabot bot closed this Aug 18, 2025
@dependabot dependabot bot deleted the dependabot/pip/aws-lambda-powertools-3.18.0 branch August 18, 2025 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants