I can connect to my database locally just fine (of course with the normal DB endpoint, not the proxy endpoint).
However, I just can't seem to get my lambda function to connect to the same database via my RDS proxy. Every time I run my lambda function:
{
"errorType": "Error",
"errorMessage": "connect ETIMEDOUT [ip]:[port]",
"trace": [
"Error: connect ETIMEDOUT [ip]:[port]",
" at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1137:16)"
]
}
Credentials are hardcoded in the lambda function using the normal user, password, name, port and of course the proxy endpoint.
I'm quite new at this. Any tips on how I can get this to work? I can provide more info if needed.
Thanks :)