can't connect to redshift database

前端 未结 4 2094
星月不相逢
星月不相逢 2020-12-18 21:30

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

4条回答
  •  既然无缘
    2020-12-18 22:04

    I was attempting to connect from my local machine via psql to a Redshift cluster in a VPC. I found I needed to explicitly add my local IP/CIDR to the inbound rules for my security group.

    You can find the menu in the AWS console at Services>VPC>Security Groups. Then click to edit your security group, and you should see the inbound rules tab at the bottom of the page. Example:


    I was unfamiliar with CIDR prior to this, but 32 seems to be the default CIDR. In my case, I added an inbound rule to allow traffic from xx.xxx.xxx.xx/32 - xx.xxx.xxx.xx being my local IP address.

提交回复
热议问题