I\'m trying to connect to Redshift database from SQL Workbench/J using Postgre JDBC drivers but I can\'t get through. I get this error \"The connection attempt failed\". The
For EC2 instance in the same VPC, you have to add the CIDR/IP of the private IP to the security group rules, i.e., instead of the public IP of 54.191.XXX.XXX, you should add the private IP of 172.31.XXX.XXX to the ingress rule of your security group.