Create a JDBC data source in JetBrains DataGrip that points to your Amazon Redshift cluster so you can run SQL locally.
DataGrip offers a full IDE experience—version control, code completion, and profiling—while Redshift provides scalable analytics. Connecting the two lets you develop, test, and optimize warehouse queries from your desktop.
You need: ① Redshift endpoint (host & port 5439), database name, user, and password. ② An inbound security-group rule allowing your IP. ③ DataGrip 2022.3+ with the bundled Amazon Redshift JDBC driver (or download v2.1+).
Open Database Explorer → + → Data Source → Amazon Redshift. In the "General" tab, enter host, port, database, user, and password. Tick “Use SSL” if required. Click Test Connection; once successful, press OK.
Switch to the "Advanced" tab. Add key-value pairs like ssl=true
or tcpKeepAlive=true
. For session-level settings, use the Driver Properties sub-panel.
Run a simple query such as SELECT current_user, current_database();
. If results appear, the configuration is correct.
Create a SQL file and execute:SELECT c.name, SUM(oi.quantity * p.price) AS lifetime_value FROM Customers c JOIN Orders o ON o.customer_id = c.id JOIN OrderItems oi ON oi.order_id = o.id JOIN Products p ON p.id = oi.product_id GROUP BY c.name ORDER BY lifetime_value DESC;
DataGrip shows a results grid you can export to CSV.
Store credentials in DataGrip’s password vault, enable SSH tunnel if VPN access is unavailable, and limit result-set size under Settings → Database → Data Views to avoid accidental large downloads.
Yes. Once connected, external schemas in svv_external_schemas
appear. You can query them like normal tables.
Yes. Generate a temporary auth token with AWS CLI and paste it as the password. Set ssl=true
in the JDBC string.
Redshift clusters created after 2021 require TLS 1.2. Ensure your JDBC driver is v2.1+ and that ssl=true
is set.