Skip to content

updated code to use pg8000 module - #176

Open
yyaasshhwwaa wants to merge 3 commits into
aws-samples:masterfrom
yyaasshhwwaa:patch-1
Open

updated code to use pg8000 module#176
yyaasshhwwaa wants to merge 3 commits into
aws-samples:masterfrom
yyaasshhwwaa:patch-1

Conversation

@yyaasshhwwaa

Copy link
Copy Markdown

update lambda code to use the pg8000 module instead of pg and pgdb. Since installing PyGreSQL requires a C based environment which means packaging and managing additional system libraries, It made the deployment process overly complex. Switching to pg8000 resolves this because it is a pure python module.

Issue #, if available:

Description of changes:

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

update lambda code to use the pg8000 module instead of pg and pgdb. Since installing PyGreSQL requires a C based environment which means packaging and managing additional system libraries, It made the deployment process overly complex. Switching to pg8000 resolves this because it is a pure python module.
commented logging statements which was exposing secrets into Cloudwatch logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant