How to Connect to Amazon RedShift

Read first about the Connection Dialog.

In the AWS Console, go on Redshift Cluster / Configuration. There you can get the JDBC connection string.

Copy the JDBC URL in DbSchema 'JDBC URL' field, after ticking the 'Edit the JDBC URL' checkbox.


Configure Redshift JDBC URL in DbSchema

Enter Redshift JDBC URL
Tip The Redshift cluster has to be create with PUBLIC access and using a public accessible Security group.

How to Create A RedShift Cluster

To be able to connect to the Redshift database in the cloud, is very important to make it public accessible and add it to a subnet with INBOUND access to the database port. Read below to understand how to set it.

Key Concepts

  • EC2 - is the computing infrastructure. Here you will find all resources related to security (firewalls).
  • S3 - is a storage infrastructure, but on a key-value principle
  • Security Group for setting firewall rules. This is available under EC2 / Network / Security groups. Each database, web server or other resource is created in a default security group. If two resources ( database and webserver ) are in the same security group, they will be able to communicate one with another. For communication with public internet, you need to create a new security group and add Inbound rule for connecting from the public IP. Outbound rules are set by default.
  • Elastic IP - is a fixed IP you can use for your resource. If for example you integrate an AWS Redshift database with another external application, you may need an Elastic IP for setting a stable internet connection. Testing Redshift you don't need this. This service costs.

Create the Security Group

Search first for VPS in ASW console. There look for Security Groups . Create a new security group and add inbound rule for the Redshift database port. There is no need to create an outbound rule, as this is enabled by default.
Create a security group in Redshift

Create the Redshift Cluster

Choose Redshift / Quick Launch Cluster / Switch to Advanced Settings


How to create a Redshift cluster

Customize Network Settings (don't use default) and choose the previous created security group and 'PUBLIC ACCESSIBLE'


Customize Redshift cluster network settings

You may also need to create rules for accessing the network


Redshift inbound rules

If you created a trial database, you can make it PUBLIC accessible from the Actions menu item


Make Redshift public accesible

Copy the JDBC URL in DbSchema connection dialog. Enter credentials in the Connection dialog first tab.


How to connect DbSchema diagram designer to Redshift database