Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump aws-lambda-powertools from 2.43.0 to 3.2.0 in /lambda/src #800

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 28, 2024

Bumps aws-lambda-powertools from 2.43.0 to 3.2.0.

Release notes

Sourced from aws-lambda-powertools's releases.

v3.2.0

Summary

We are thrilled to announce that Powertools for AWS Lambda (Python) now offers AWS Lambda layers in the AWS GovCloud (US) regions.

🌟 ⭐ Thanks to @​SimonBFrank's amazing work, our Logger utility is now thread-safe when handling extra keys.

New AWS GovCloud (US) Lambda Layer ARNs

You can now use Powertools for AWS Lambda (Python) Lambda layers in the AWS GovCloud (US) 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 GovCloud (us-gov-east-1)

Architecture Layer ARN
x86_64 arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsPythonV3-{python_version}-x86_64:{version}
ARM arn:aws-us-gov:lambda:us-gov-east-1:165087284144:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:{version}

AWS GovCloud (us-gov-west-1)

Architecture Layer ARN
x86_64 arn:aws-us-gov:lambda:us-gov-west-1:165093116878:layer:AWSLambdaPowertoolsPythonV3-{python_version}-x86_64:{version}
ARM arn:aws-us-gov:lambda:us-gov-west-1:165093116878:layer:AWSLambdaPowertoolsPythonV3-{python_version}-arm64:{version}

New thread-safe methods when working with extra keys in the Logger utility

Docs

Before this release, customers might have encountered issues when using append_keys between thread executions.

You can now use new thread-safe methods for managing extra keys in the Logger utility, ensuring safe and efficient logging in concurrent environments.

threads

Acknowledgements

Last but not least, we are thrilled to see our customers adopting v3, as it indicates we are moving in the right direction.

Changes

🌟New features and non-breaking changes

... (truncated)

Changelog

Sourced from aws-lambda-powertools's changelog.

[v3.2.0] - 2024-10-22

Bug Fixes

  • test command in verify step (#5381)
  • ci: Tables are nicer (#5416)
  • ci: GovCloud layer verification (#5382)
  • ci: Update partition name (#5380)
  • layer: update partition name in the GovCloud workflow (#5379)

Documentation

  • Add GovCloud layer info (#5414)
  • event_handler: add Terraform payload info for API Gateway HTTP API (#5351)
  • examples: temporarily fix SAR version to v2.x (#5360)
  • layer: update layer version number (#5344)
  • upgrade_guide: update Lambda layer name (#5347)

Features

  • ci: GovCloud Layer Workflow (#5261)
  • logger: add thread safe logging keys (#5141)

Maintenance

  • version bump
  • ci: new pre-release 3.1.1a0 (#5353)
  • ci: Add dump of govcloud layer info in verify step (#5415)
  • deps: bump squidfunk/mkdocs-material from f9cb76d to 0d4e687 in /docs (#5395)
  • deps: bump actions/upload-artifact from 4.4.1 to 4.4.3 (#5357)
  • deps: bump squidfunk/mkdocs-material from 8e8b333 to f9cb76d in /docs (#5366)
  • deps: bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0.14 to 3.0.15 (#5418)
  • deps: bump jsonpath-ng from 1.6.1 to 1.7.0 (#5369)
  • deps: bump squidfunk/mkdocs-material from 0d4e687 to 31eb7f7 in /docs (#5417)
  • deps: bump actions/upload-artifact from 4.4.0 to 4.4.3 (#5373)
  • deps-dev: bump boto3-stubs from 1.35.38 to 1.35.39 (#5370)
  • deps-dev: bump boto3-stubs from 1.35.39 to 1.35.41 (#5392)
  • deps-dev: bump aws-cdk-aws-lambda-python-alpha from 2.161.1a0 to 2.162.1a0 (#5386)
  • deps-dev: bump cdklabs-generative-ai-cdk-constructs from 0.1.274 to 0.1.275 (#5406)
  • deps-dev: bump boto3-stubs from 1.35.43 to 1.35.44 (#5407)
  • deps-dev: bump cfn-lint from 1.17.2 to 1.18.1 (#5423)
  • deps-dev: bump cfn-lint from 1.17.1 to 1.17.2 (#5408)
  • deps-dev: bump aws-cdk-lib from 2.161.1 to 2.162.1 (#5371)
  • deps-dev: bump cdklabs-generative-ai-cdk-constructs from 0.1.273 to 0.1.274 (#5394)
  • deps-dev: bump aws-cdk from 2.161.1 to 2.162.1 (#5372)
  • deps-dev: bump boto3-stubs from 1.35.41 to 1.35.42 (#5397)
  • deps-dev: bump cfn-lint from 1.16.1 to 1.17.1 (#5404)
  • deps-dev: bump mkdocs-material from 9.5.40 to 9.5.41 (#5393)
  • deps-dev: bump cfn-lint from 1.16.0 to 1.16.1 (#5363)
  • deps-dev: bump boto3-stubs from 1.35.37 to 1.35.38 (#5364)
  • deps-dev: bump mkdocs-material from 9.5.39 to 9.5.40 (#5365)

... (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

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.8.
  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.

DynamoDBStreamModel in parser

!!! info "This also applies if you're using DynamoDB BatchProcessor{target="_blank"}."

DynamoDBStreamModel now returns native Python types when you access DynamoDB records through Keys, NewImage, and OldImage attributes.

... (truncated)

Commits
  • 4d20f6d chore: version bump
  • ebb51f8 chore(deps-dev): bump cfn-lint from 1.17.2 to 1.18.1 (#5423)
  • 26275f3 chore(deps-dev): bump boto3-stubs from 1.35.44 to 1.35.45 (#5421)
  • 6b584d2 chore(deps-dev): bump mkdocs-material from 9.5.41 to 9.5.42 (#5420)
  • 4799b3b chore(deps-dev): bump cdklabs-generative-ai-cdk-constructs from 0.1.275 to 0....
  • d3698d2 feat(logger): add thread safe logging keys (#5141)
  • fd609bc chore(deps): bump zgosalvez/github-actions-ensure-sha-pinned-actions from 3.0...
  • c0e9552 chore(deps): bump squidfunk/mkdocs-material from 0d4e687 to 31eb7f7 in /d...
  • 897728e fix(ci): Tables are nicer (#5416)
  • 25d6404 chore(ci): Add dump of govcloud layer info in verify step (#5415)
  • 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.43.0 to 3.2.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.43.0...v3.2.0)

---
updated-dependencies:
- dependency-name: aws-lambda-powertools
  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 Oct 28, 2024
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