I just setup aws rds and I'm trying to connect pgadmin to it. I put in the Endpoint
and the port
shown in the rds dashboard, and the username and password I set. When I try connecting, I get an error message saying: Unable to connect to server "host name" port "port" failed: timeout expired.
I also tried connecting prisma to it by running npx prisma migrate dev --name init
and I also get an error saying P1001: Can't reach database server at "host name"
.
I made sure to set Publicly accessible
to Yes
, but it's still not working. What am I doing wrong and how can I fix it?
(For the settings, I used the default free tier settings.)
CodePudding user response:
In the question thread, the security group is defined to accept All Traffic
from all IPv6 addresses ::/0
. Permission for IPv4 address should be added as well. You may want to address All Traffic for IPv4
address 0.0.0.0/0
.