RDS IAM authorization connection times out #11508
Unanswered
danscratch
asked this question in
Help
Replies: 0 comments
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.
-
Hi everyone,
I've been setting up my system with the PostgresAdapter, and I've noticed that when I used username/password to get a pool, everything works fine. But when I use RDS IAM authentication, it works initially, then the connection times out after some period of inactivity. Here is the error message:
It looks like it's breaking in the
getSessionAndUser()
function in the PostgresAdapter. Here's the code I use to connect:Again – this all works until it times out, at which point it crashes catastrophically. This isn't a problem in the rest of my code, because I can either try-catch, or just get a new pool with a new token after some period of inactivity.
Has anyone gotten RDS IAM authentication to work?
Beta Was this translation helpful? Give feedback.
All reactions