I followed all the steps mentioned on here
to connect to Redshift
through Workbench J
.
I am not using SSH
to connect, so have left SSH
settings alone.
When I select Security after selecting Redshift
, I see :
Your account does not support the EC2-Classic Platform in this region. Cluster Security Groups are only available when the EC2-Classic Platform is supported. Instead, use VPC Security Groups to control access to your clusters. Go to the EC2 Console to view your VPC Security Groups. For more information, see Amazon Redshift Documentation on Supported Platforms and Managing Clusters in VPC.
My cluster is under a Security Group which has the following Inbound rule :
Type: Redshift
Protocol: TCP
Port Range: 5439
Source: Custom 0.0.0.0/0 (Experimental, just to test,
I will replace this with my IP address)
When I do a Netstat
on the host from my machine with -Pn
. I get a
Host is up.
PORT STATE SERVICE
5439/tcp filtered unknown
Nmap done: 1 IP address (1 host up) scanned in 2.22 seconds
I have already gone through several similar questions and none of these is working for me.
Double check your Security Group settings:
Configuration
tab.VPC security groups
Security Groups
in the EC2 console with the correct security group selected.Inbound
tab for the security group and click theEdit
button (a dialog box opens).Add Rule
button then:Redshift
from theType
dropdown menuAnywhere
from theSource
dropdown menuMy Ip
once your connection works!Save
button (the dialog closes)0.0.0.0/0
AND::/0
)Then in SQL Workbench's "Select Connection Profile" dialog:
Classname
is likecom.amazon.redshift.jdbc42.Driver
andSample URL
isjdbc:redshift://host:port/name_of_database
.Driver
you just created from the drop down.JDBC URL
from the Redshift console Configuration tab and paste it into theURL
field.jdbc:redshift://my-cluster.asdfgh5jk8.us-east-1.redshift.amazonaws.com:
5439/my-db
Username
andPassword
Please let me know in the comments if this doesn't work for some reason and I'll help you get it working.