Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 7, 2025

Bumps aws-lambda-powertools from 2.35.1 to 3.16.0.

Release notes

Sourced from aws-lambda-powertools's releases.

v3.16.0

Summary

We are thrilled to announce that Powertools for AWS Lambda (Python) now offers AWS Lambda layers in the AWS China region cn-north-1.

New AWS China Lambda Layer ARNs

You can now use Powertools for AWS Lambda (Python) Lambda layers in the AWS China regions, enhancing customer experience by making our pre-packaged Lambda layers available in this AWS partition.

To take advantage of the new layers, you need to update your functions or deployment setup to include one of the new Lambda layer ARN from the table below:

AWS China (cn-north-1)

Architecture Layer ARN
x86_64 arn:aws-cn:lambda:cn-north-1:498634801083:layer:AWSLambdaPowertoolsPythonV3-{python_version}-x86_64:{version}
ARM arn:aws-cn:lambda:cn-north-1:498634801083:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:{version}

Changes

🌟New features and non-breaking changes

📜 Documentation updates

🐛 Bug and hot fixes

🔧 Maintenance

... (truncated)

Changelog

Sourced from aws-lambda-powertools's changelog.

[v3.16.0] - 2025-07-02

Bug Fixes

  • event_source: fix decode headers with signed bytes (#6878)
  • logger: caplog working with parent Logger (#6847)
  • logger: fix exception on flush without buffer (#6794)

Documentation

  • kafka: refactor kafka documentation (#6854)

Features

  • ci: Partition workflow scripts updated to work (#6900)
  • ci: Deploy to AWS China partitions (#6867)

Maintenance

  • version bump
  • ci: new pre-release 3.15.2a6 (#6923)
  • ci: incorporate SSM update workflow into release pipeline (#6914)
  • ci: new pre-release 3.15.2a3 (#6876)
  • ci: new pre-release 3.15.2a2 (#6865)
  • ci: new pre-release 3.15.2a5 (#6910)
  • ci: new pre-release 3.15.2a4 (#6881)
  • ci: pinning versions in actions + refactor tests (#6904)
  • ci: stop publishing to gh-pages branch (#6903)
  • ci: stop publishing to gh-pages branch (#6902)
  • ci: stop publishing to gh-pages branch (#6901)
  • ci: stop publishing to gh-pages branch (#6899)
  • ci: remove v2 deployment files (#6895)
  • ci: bump urllib3 version (#6893)
  • ci: new pre-release 3.15.2a0 (#6852)
  • ci: refactor thread safe tests (#6889)
  • ci: new pre-release 3.15.2a1 (#6860)
  • ci: fix command to replace layer number (#6868)
  • deps: bump docker/setup-buildx-action from 3.10.0 to 3.11.1 (#6823)
  • deps: bump pydantic from 2.11.5 to 2.11.7 (#6844)
  • deps: bump mkdocs-material from 9.6.14 to 9.6.15 in /docs (#6920)
  • deps: bump redis from 5.3.0 to 6.2.0 (#6827)
  • deps: bump pydantic-settings from 2.9.1 to 2.10.1 (#6872)
  • deps: bump datadog-lambda from 6.110.0 to 6.111.0 (#6857)
  • deps: bump valkey-glide from 1.3.5 to 2.0.1 (#6871)
  • deps: bump squidfunk/mkdocs-material from eb04b60 to 0bfdba4 in /docs (#6915)
  • deps: bump mkdocs-material from 9.5.50 to 9.6.14 in /docs (#6908)
  • deps-dev: bump sentry-sdk from 2.29.1 to 2.31.0 (#6870)
  • deps-dev: bump aws-cdk from 2.1019.1 to 2.1019.2 (#6875)
  • deps-dev: bump pytest from 8.4.0 to 8.4.1 (#6874)
  • deps-dev: bump cfn-lint from 1.35.4 to 1.36.1 (#6855)
  • deps-dev: bump boto3-stubs from 1.38.42 to 1.38.43 (#6864)

... (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
  • ce5fad6 chore: version bump
  • df52248 chore(ci): changelog rebuild (#6924)
  • b66edac chore(ci): new pre-release 3.15.2a6 (#6923)
  • 5e3e85b chore(ci): incorporate SSM update workflow into release pipeline (#6914)
  • 852650f chore(deps-dev): bump cfn-lint from 1.36.1 to 1.37.0 (#6918)
  • 60d794f chore(deps-dev): bump aws-cdk from 2.1019.2 to 2.1020.0 (#6917)
  • b6a924a chore(deps-dev): bump boto3-stubs from 1.39.0 to 1.39.1 (#6916)
  • 46a2bd7 chore(deps-dev): bump aws-cdk-aws-lambda-python-alpha from 2.202.0a0 to 2.203...
  • 75bdc4f chore(deps-dev): bump pytest-xdist from 3.7.0 to 3.8.0 (#6921)
  • c393f54 chore(deps): bump mkdocs-material from 9.6.14 to 9.6.15 in /docs (#6920)
  • 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.16.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.16.0)

---
updated-dependencies:
- dependency-name: aws-lambda-powertools
  dependency-version: 3.16.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 Jul 7, 2025
@dependabot dependabot bot temporarily deployed to pull-request July 7, 2025 01:12 Inactive
@dependabot dependabot bot temporarily deployed to pull-request July 7, 2025 01:12 Inactive
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 7, 2025

@github-actions
Copy link

github-actions bot commented Jul 7, 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 Jul 21, 2025

Superseded by #981.

@dependabot dependabot bot closed this Jul 21, 2025
@dependabot dependabot bot deleted the dependabot/pip/aws-lambda-powertools-3.16.0 branch July 21, 2025 02:01
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