Connect Render App to AWS Postgres DB

Hello Renders :slight_smile:
is there a way to connect a Render app to a AWS RDB working with Postgres ?
I tried to add my DB env variables but with no sucess. My DB is working and connected, I verified with a psql query and telnet try from terminal.
But every deploy I try are failing with this error:

PG::ConnectionBad: connection to server at "", port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?

What need to be configure on the AWS side to allow Render connections ?

Thank a lot :slight_smile:

Hi there,

There wouldn’t be any restrictions from the Render side to connecting to an AWS RDS instance.

The IP in your shared logs shows a private range 10.x.x.x, if that’s an IP provided by your RDS instance, that wouldn’t work. You’d need to connect to a publicly accessible endpoint, e.g. usually a hostname ending something like

Hope that helps


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.