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: disable idempotency doesn't disable dynamodb client creation in persistent store #796

Merged

Conversation

jeromevdl
Copy link
Contributor

@jeromevdl jeromevdl commented Mar 15, 2022

Issue #, if available:
When disabling idempotency using the environment variable "POWERTOOLS_IDEMPOTENCY_DISABLED", the creation of the DynamoDbClient was not disabled, which is not desired when performing tests (it tries to connect to AWS or requires to setup a local dynamodb)

Description of changes:

When using the "POWERTOOLS_IDEMPOTENCY_DISABLED" env var, the DynamoDbClient (for the idempotency module) is not created.

Checklist

Breaking change checklist

RFC issue #:

  • Migration process documented
  • Implement warnings (if it can live side by side)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@pankajagrawal16 pankajagrawal16 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@msailes msailes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this will help with testing

@pankajagrawal16 pankajagrawal16 merged commit ee767ee into aws-powertools:master Mar 18, 2022
@jeromevdl jeromevdl deleted the fix-disable-idempotency branch November 4, 2022 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants