title: Connecting to Redshift via psycopg2 fails
body: <p>I have whitelisted ec2 IP address but without 0.0.0.0/0 configuration, I can't connect to the Redshift database from psycopg2. What can be done about this situation where we want to request from a particular IP address.</p>
  <p>Is this is the bug that exists when you try to connect it programmatically</p>
  <p>Edit:</p>
  <p>I tried to whitelist my local IP address and ran my program on the local server and it got connected. But I am not able to connect via my application hosted on EC2 instance.</p>