-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue 2665] Analytics jobs conditionally use IAM token as Postgres p…
…wd (#2799) ## Summary Fixes #2665 ### Time to review: __2 mins__ ## Changes proposed > What was added, updated, or removed in this PR. Adds a switch in `analytics/integrations/db.py` that determines which value to use for a DB password when connecting to Postgres: either the value in `local.env` or an IAM token, depending on an environment variable. Also adds better exception handling, to make errors easier to spot in CI. ## Context for reviewers > Testing instructions, background context, more in-depth details of the implementation, and anything else you'd like to call out or ask reviewers. Explain how the changes were verified. This is a follow up to previous PRs, #2786 and #2796, and part of an effort to get `analytics` step functions to successfully connect to Postgres DB in a CI environment. ## Additional information > Screenshots, GIF demos, code examples or output to help show the changes working as expected.
- Loading branch information
1 parent
ce2902c
commit 56acd6d
Showing
4 changed files
with
56 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters