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

chore(deps): bump aws-lambda-powertools from 1.17.1 to 2.9.1 in /lambda/src #351

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

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Mar 6, 2023

Bumps aws-lambda-powertools from 1.17.1 to 2.9.1.

Release notes

Sourced from aws-lambda-powertools's releases.

2.9.1

Summary

This patch release reverts a regression in Idempotency when using static_pk_value for custom composite keys in DynamoDB Persistence Layer - huge thanks to @​Tankanow for reporting and fixing it.

⭐ Big thanks to new contributors: @​KeltonKarboviak on inconsistencies on Parameters docs (#1966), and @​cibinmathew on upgrading GitHub Actions set-output command in our workflows.

Changes

📜 Documentation updates

🐛 Bug and hot fixes

  • fix(idempotency): revert dict mutation that impacted static_pk_value feature (#1970) by @​Tankanow

🔧 Maintenance

This release was made possible by the following contributors:

@​KeltonKarboviak, @​cibinmathew, @​Tankanow, @​dependabot, @​dependabot[bot], @​heitorlessa and Release bot

v2.9.0

Summary

This release contains a new feature on Batch Processing, along with enhancements and bug fixes to Logger and Feature Flags utilities.

⭐ Huge welcome to the new contributors: @​royygael, @​iago1460

SQS FIFO Batch Processing

... (truncated)

Changelog

Sourced from aws-lambda-powertools's changelog.

Unreleased

Bug Fixes

  • idempotency: revert dict mutation that impacted static_pk_value feature (#1970)

Documentation

  • appsync: add mutation example and infrastructure fix (#1964)
  • parameters: fix typos and inconsistencies (#1966)

Maintenance

  • update project description
  • ci: disable pypi test due to maintenance mode
  • ci: replace deprecated set-output commands (#1957)
  • deps: bump fastjsonschema from 2.16.2 to 2.16.3 (#1961)
  • deps: bump release-drafter/release-drafter from 5.22.0 to 5.23.0 (#1947)
  • deps: bump zgosalvez/github-actions-ensure-sha-pinned-actions from 2.1.0 to 2.1.1 (#1958)
  • deps-dev: bump coverage from 7.2.0 to 7.2.1 (#1963)
  • deps-dev: bump types-python-dateutil from 2.8.19.8 to 2.8.19.9 (#1960)
  • deps-dev: bump mkdocs-material from 9.0.14 to 9.0.15 (#1959)
  • deps-dev: bump mypy-boto3-lambda from 1.26.55 to 1.26.80 (#1967)
  • deps-dev: bump types-requests from 2.28.11.14 to 2.28.11.15 (#1962)
  • deps-dev: bump aws-cdk-lib from 2.66.0 to 2.66.1 (#1954)
  • deps-dev: bump coverage from 7.1.0 to 7.2.0 (#1951)
  • deps-dev: bump mkdocs-material from 9.0.13 to 9.0.14 (#1952)
  • deps-dev: bump mypy-boto3-ssm from 1.26.43 to 1.26.77 (#1949)
  • deps-dev: bump types-requests from 2.28.11.13 to 2.28.11.14 (#1946)
  • deps-dev: bump aws-cdk-lib from 2.65.0 to 2.66.0 (#1948)
  • deps-dev: bump types-python-dateutil from 2.8.19.7 to 2.8.19.8 (#1945)
  • parser: add workaround to make API GW test button work (#1971)

[v2.9.0] - 2023-02-21

Bug Fixes

  • ci: upgraded cdk to match the version used on e2e tests
  • feature-flags: revert RuleAction Enum inheritance on str (#1910)
  • logger: support exception and exception_name fields at any log level (#1930)
  • metrics: clarify no-metrics user warning (#1935)

Documentation

  • event_handlers: Fix REST API - HTTP Methods documentation (#1936)

... (truncated)

Upgrade guide

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


title: Upgrade guide description: Guide to update between major Powertools versions

End of support v1

On March 31st, AWS Lambda Powertools for Python v1 will reach end of support. After that, Powertools v1 will no longer receive updates or releases. If you are still using v1, we encourage you to read our upgrade guide and update to the latest version.

Given our commitment to all of our customers using AWS Lambda Powertools for Python, we will keep Pypi v1 releases and documentation 1.x versions to prevent any disruption.

Migrate to v2 from v1

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

Quick summary

Area Change Code change required IAM Permissions change required
Batch Removed legacy SQS batch processor in favour of BatchProcessor. Yes -
Environment variables Removed legacy POWERTOOLS_EVENT_HANDLER_DEBUG in favour of POWERTOOLS_DEV{target="_blank"}. - -
Event Handler Updated headers response format due to multi-value headers and cookie support{target="_blank"}. Tests only -
Event Source Data Classes Replaced DynamoDBStreamEvent AttributeValue with native Python types. Yes -
Feature Flags / Parameters Updated AppConfig API calls due to GetConfiguration API deprecation. - Yes
Idempotency Updated partition key to include fully qualified function/method names. - -

First Steps

!!! note "All dependencies are optional now. Tracer{target="_blank"}, Validation{target="_blank"}, and Parser{target="_blank"} now require additional dependencies."

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.7
  2. Ensure you have the latest version via Lambda Layer or PyPi{target="_blank"}.
  3. Review the following sections to confirm whether they affect your code

Legacy SQS Batch Processor

We removed the deprecated PartialSQSProcessor class and sqs_batch_processor decorator.

You can migrate to BatchProcessor with the following changes:

  1. If you use sqs_batch_decorator, change to batch_processor decorator
  2. If you use PartialSQSProcessor, change to BatchProcessor
  3. Enable ReportBatchItemFailures in your Lambda Event Source{target="_blank"}
  4. Change your Lambda Handler to return the new response format

=== "[Before] Decorator"

... (truncated)

Commits
  • 8358af0 chore: update v2 layer ARN on documentation
  • 3c778aa update changelog with latest changes
  • 60cd53a chore(ci): disable pypi test due to maintenance mode
  • 8bcc629 chore: update project description
  • 1dd083d update changelog with latest changes
  • ffbc4b7 bump version to 2.9.1
  • ca9686d fix(idempotency): revert dict mutation that impacted static_pk_value feature ...
  • af7f760 chore(parser): add workaround to make API GW test button work (#1971)
  • 8296945 update changelog with latest changes
  • 80befe9 docs(appsync): add mutation example and infrastructure fix (#1964)
  • 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 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/awslabs/aws-lambda-powertools-python) from 1.17.1 to 2.9.1.
- [Release notes](https://github.com/awslabs/aws-lambda-powertools-python/releases)
- [Changelog](https://github.com/awslabs/aws-lambda-powertools-python/blob/develop/CHANGELOG.md)
- [Upgrade guide](https://github.com/awslabs/aws-lambda-powertools-python/blob/develop/docs/upgrade.md)
- [Commits](aws-powertools/powertools-lambda-python@v1.17.1...v2.9.1)

---
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 Mar 6, 2023
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