Srisfti
Srisfti

Reputation: 177

AWS EC2 Private Instance DB Connection

I have a VPC with public & private subnets (Windows 2019). I installed Postgres database (not RDS) manually in the private instance. As recommended by AWS I have created all the security group rules in public & private instance security groups. I wasn't able to connect to the DB from public instance. Please advise. Thanks.

Public instance security group:

Outbound:

Private instance security group:

Upvotes: 1

Views: 229

Answers (1)

Marcin
Marcin

Reputation: 238827

Based on the comments.

The connection issue was caused by build-in firewall on Windows instances.

The solution was to add rule to the firewall enabling port 5432.

Upvotes: 0

Related Questions