# Postgres node issue

**URL:** <https://discourse.nodered.org/t/postgres-node-issue/87369>\
**Category:** General\
**Created:** [20 April 2024 14:39 UTC](https://discourse.nodered.org/t/postgres-node-issue/87369 "2024-04-20T14:39:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![QusaiAlHajHasan](https://avatars.discourse-cdn.com/v4/letter/q/71c47a/32.png) [@QusaiAlHajHasan](https://discourse.nodered.org/u/QusaiAlHajHasan)\
**Post date:** [20 April 2024 14:39 UTC](https://discourse.nodered.org/t/postgres-node-issue/87369/1 "2024-04-20T14:39:43Z")

</div>

Hi All,

I have an issue described as below.  
I have a node-red installed on AWS EC2.  
I have PostgreSQL database on AWS RDS.  
Now, I'm trying to add postgres node to insert the data to the postgres. but I faced several issues.  
When I set an EC2 connection on the RDS I can access the database from SSH only and got this error in node-red

```auto
"error: no pg_hba.conf entry for host "x.x.x.x", user "postgres", database "postgres", no encryption"

```

And then I changes the inbound and outbound rules in both EC2 and RDS to connect to the specific IP and I got the following error from both SSH and node-red

```auto
error: connection timeout

```

What is the problem and how to fix it? I spent four days on it without any solution.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [19 July 2024 14:40 UTC](https://discourse.nodered.org/t/postgres-node-issue/87369/2 "2024-07-19T14:40:38Z")

</div>

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