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:
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.