3 Answers
- Newest
- Most votes
- Most comments
2
It looks like you're seeing the issue described in the documentation - have you tried the remediation steps there?
The error message you're getting tells me that the Lambda function is connecting to the database correctly at a networking level; but the database is denying access based on its configuration.
1
The no encryption part of the error message is worth looking into, is PostgreSQL configured to force SSL for connections? https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/PostgreSQL.Concepts.General.SSL.html
If it is then the lambda code will need to enable SSL too.
Relevant content
- Accepted Answerasked 2 years ago
- AWS OFFICIALUpdated 4 years ago
- AWS OFFICIALUpdated 19 days ago
- AWS OFFICIALUpdated 2 years ago