amazon-web-servicesamazon-redshiftamazon-vpcdata-pipeline

Connection error of AWS Redshift to local computer


I tried to connect Amazon Redshift to my local computer using pycopg2. However, I got an error message:

psycopg2.OperationalError: could not connect to server: Operation timed out. Is the server running on host xxx and accepting TCP/IP connecitons on posrt 5439

I have done two guides with searching google:

  1. Changed the Publicly Accessible setting as enable, and
  2. Add 0.0.0.0/0 and ::/0 to VPC route as gateway.

It still doesn't work. Please let me know if you know what the problem is.


Solution

  • Things to check: