Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.pipeshub.com/llms.txt

Use this file to discover all available pages before exploring further.

Redshift Logo

Redshift Toolset

Schema introspection and SQL execution on Amazon Redshift

ReadyDatabase

Overview

The Redshift toolset lets agents query your Amazon Redshift database.
Admin creates the Redshift toolset once. After that, each user authenticates with their own Redshift username and password.

Configuration Guide

Create namespace and workgroup

  1. Open AWS Console and go to Amazon Redshift.
  2. Click Try Amazon Redshift Serverless free trial.
  3. Select Customize settings.
  4. Under Namespace, set:
    • Namespace name: redshift-dev
    • Database name: dev
    • Admin username: for example root
    • Password: choose Add password manually and set a password
    • Create or attach an IAM role for Redshift access
  5. Under Workgroup, set:
    • Workgroup name: redshift-dev-wg
    • RPU: change from 128 to 16 for testing
    • Enable Turn on public accessibility
  6. Keep other values as default and click Save configuration.

Open port 5439 in security group

  1. In Redshift, open your Workgroup page.
  2. Open Network and security.
  3. Click the linked Security group.
  4. In EC2 security group, click Edit inbound rules.
  5. Add rule:
    • Type: Custom TCP
    • Port range: 5439
    • Source: My IP
  6. Click Save rules.
Redshift uses port 5439 by default.

Copy endpoint and database details

From the Redshift Workgroup page, copy the endpoint. Example:redshift-dev-wg.891377406506.ap-south-1.redshift-serverless.amazonaws.com:5439/devUse these values in PipesHub setup:
  • Host: redshift-dev-wg.891377406506.ap-south-1.redshift-serverless.amazonaws.com (only hostname before :)
  • Port: 5439
  • Database: dev
If you already have data in Redshift, skip this step.

Option A: Load CSV from Query Editor v2

  1. Open Redshift workgroup page and click Query data.
  2. Open Query Editor v2.
  3. Open settings and add your S3 bucket URL (example: s3://your-bucket-name).
  4. Click Load data and load CSV files.

Option B: Load SQL using psql

Make sure psql is installed:
psql --version
Then run:
psql "sslmode=require host=redshift-dev-wg.891377406506.ap-south-1.redshift-serverless.amazonaws.com port=5439 user=root dbname=dev" -f "/path/to/tickitdb.sql"
Only admin can create the Redshift toolset instance in the workspace.

Go to toolset creation flow

  1. In PipesHub, open Workspace Settings.
  2. Click Actions.
  3. Click Create Toolset.
Open Workspace Settings
Navigate to Actions
Click Create Toolset

Select Redshift and configure

  1. Choose Redshift from toolsets.
  2. Fill the form:
FieldValue
Instance nameExample: Redshift
HostRedshift endpoint host only
Port5439
DatabaseExample: dev
  1. Click Create.
Redshift setup card
Admin sets only instance connection details. Username and password are not stored at this step.
After admin creates the toolset, each user must authenticate with their own Redshift credentials.
  1. Open Workspace Settings > Actions.
  2. Open the Redshift toolset instance.
  3. Click Authenticate.
  4. Enter your Redshift Username and Password.
  5. Click Save credentials.
Redshift toolset instance inactive before authentication
Authenticate Redshift with user username and password
Redshift toolset authenticated
  1. Open Agent Builder.
  2. In Tools, drag Redshift to the canvas.
  3. Connect it to your agent.
  4. Ask data questions in plain language.
Redshift toolset in agent builder

FAQ

  • Admin creates the Redshift toolset instance once.
  • Each user authenticates with their own Redshift username and password.
Use only the hostname part of the endpoint.If endpoint is: redshift-dev-wg.891377406506.ap-south-1.redshift-serverless.amazonaws.com:5439/devThen use:
  • Host: redshift-dev-wg.891377406506.ap-south-1.redshift-serverless.amazonaws.com
  • Port: 5439
  • Database: dev