How do I connect to a Postgres RDS with lambda using IAM? #4290
Unanswered
beckerrobin
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My setup is I have my the IAM access key and secret in a .env file in the root (AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY).
Using the following I get the error
Code:
Changing to the following instead returns
Switing to using the node-postgres package works perfectly. What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions