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

fix(lambda): bump @aws-lambda-powertools/logger from 1.17.0 to 1.18.0 in /lambdas #3754

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 5, 2024

Bumps @aws-lambda-powertools/logger from 1.17.0 to 1.18.0.

Release notes

Sourced from @​aws-lambda-powertools/logger's releases.

v1.18.0

Summary

This minor release introduces improvements around how the Idempotency utility handles conditional writes when used with DynamoDB as persistence layer. Additionally the release fixes an issue with expired AppConfig session tokens that affected long lived execution environments.

Idempotency: DynamoDB storage optimization

The Idempotency utility uses conditional writes to persist the idempotency state of a request. A failed conditional write signals to the utility that the request payload being processed has already been tried or is currently being processed.

Previously, condition check errors in single write operations did not return a copy of the item in the event of a condition check error. A separate read request was necessary to get the item and investigate the cause of the error.

Now that AWS introduced the ability to return a copy of the item as it was during the write attempt the Idempotency utility simplifies and lowers the cost of handling retries by removing the need to perform a separate read operation to retrieve the idempotency record of the request already processed.

Note that this feature requires you to use version v3.363.0 of the @aws-sdk/client-dynamodb or newer together with @aws-lambda-powertools/idempotency.

Parameters: AppConfig Session Token handling

When retrieving a configuration from AppConfig the Parameters utility retrieves a session token that can be used to retrieve the next value within 24 hours. Prior to this release the utility mistakenly assumed that the execution environment would be recycled before that time due to the Lambda timeout of 15 minutes.

For those customers who use provisioned concurrency or use the Parameters utility outside of Lambda however this was an issue as it caused the utility to fail retrieving new configurations from AppConfig due to an expired token. Starting from this release the utility keeps track of the token expiration timestamp and retrieves a new one before attempting to call AppConfig if the token has already expired.

Acknowledgements

Congrats to @​daschaa, @​tolutheo, and @​yamatatsu for getting their first PR merged 🎉

Changes

🌟New features and non-breaking changes

  • feat(idempotency): leverage new dynamodB Failed conditional writes behavior (#1779) by @​tolutheo

📜 Documentation updates

... (truncated)

Commits
  • 7715df8 chore(release): v1.18.0 [skip ci]
  • 76fc20c chore(docs): add link to performance tuning demo (#1960)
  • a9e5ba6 chore(deps): bump the aws-sdk group with 9 updates (#1959)
  • 32a477a chore(deps-dev): bump aws-sdk from 2.1540.0 to 2.1543.0 (#1958)
  • 53976f9 chore(deps-dev): bump @​typescript-eslint/eslint-plugin (#1948)
  • 481de73 chore(deps-dev): bump @​typescript-eslint/parser from 6.19.0 to 6.19.1 (#1946)
  • 6a4213b chore(deps): bump actions/upload-artifact from 4.2.0 to 4.3.0 (#1950)
  • 9fa7724 chore(deps): bump esbuild from 0.19.11 to 0.19.12 (#1952)
  • 8c7286e chore(maintenance): add environment scope to npm token (#1957)
  • c411407 chore(deps): bump mkdocs-material from 9.5.4 to 9.5.5 in /docs (#1949)
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by aws-powertools-bot, a new releaser for @​aws-lambda-powertools/logger since your current version.


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 <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps [@aws-lambda-powertools/logger](https://github.com/aws-powertools/powertools-lambda-typescript) from 1.17.0 to 1.18.0.
- [Release notes](https://github.com/aws-powertools/powertools-lambda-typescript/releases)
- [Changelog](https://github.com/aws-powertools/powertools-lambda-typescript/blob/main/CHANGELOG.md)
- [Commits](aws-powertools/powertools-lambda-typescript@v1.17.0...v1.18.0)

---
updated-dependencies:
- dependency-name: "@aws-lambda-powertools/logger"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Feb 5, 2024
@npalm npalm merged commit 98131ff into main Feb 8, 2024
6 checks passed
@npalm npalm deleted the dependabot/npm_and_yarn/lambdas/aws-lambda-powertools/logger-1.18.0 branch February 8, 2024 14:39
npalm pushed a commit that referenced this pull request Feb 12, 2024
🤖 I have created a release *beep* *boop*
---


##
[5.7.0](v5.6.3...v5.7.0)
(2024-02-12)


### Features

* allow setting VPC and subnets per runner
([#3467](#3467))
([1288c81](1288c81))


### Bug Fixes

* Correct typo in README.md
([#3758](#3758))
([7186c1c](7186c1c))
* **images:** avoid wrong AMI selected for ubuntu jammy
([#3747](#3747))
([595aec9](595aec9))
* **lambda:** bump @aws-lambda-powertools/logger from 1.17.0 to 1.18.0
in /lambdas
([#3754](#3754))
([98131ff](98131ff))
* **lambda:** bump axios from 1.6.2 to 1.6.7 in /lambdas
([#3755](#3755))
([80a34bd](80a34bd))
* **lambda:** bump the aws group in /lambdas with 5 updates
([#3730](#3730))
([7854a5f](7854a5f))
* **lambda:** bump the aws group in /lambdas with 5 updates
([#3743](#3743))
([7ca40ef](7ca40ef))
* **lambda:** bump the aws group in /lambdas with 5 updates
([#3753](#3753))
([9f3aa68](9f3aa68))
* windows userdata does not support gzip
([#3759](#3759))
([b74df54](b74df54))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: forest-releaser[bot] <80285352+forest-releaser[bot]@users.noreply.github.com>
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 javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant