> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hotglue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AWS Redshift

# Connector Details

| Name           | Value                                                                                                                                                                                                                                                                                                             |
| :------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Platform       | [AWS Redshift](https://aws.amazon.com/redshift)                                                                                                                                                                                                                                                                   |
| Auth Type      | API Keys                                                                                                                                                                                                                                                                                                          |
| Direction      | Bidirectional                                                                                                                                                                                                                                                                                                     |
| Tap Repo       | [https://github.com/hotgluexyz/tap-redshift](https://github.com/hotgluexyz/tap-redshift)                                                                                                                                                                                                                          |
| Target Repo    | [https://github.com/hotgluexyz/target-redshift](https://github.com/hotgluexyz/target-redshift)                                                                                                                                                                                                                    |
| Tap Metrics    | <p>Usage: <Tooltip tip="low"><Icon icon="user" iconType="regular" color="#fff" size="14px" /><Icon icon="user" iconType="regular" color="#fff" size="14px" /><Icon icon="user" iconType="regular" color="#A9A9A9" size="14px" /><Icon icon="user" iconType="regular" color="#A9A9A9" size="14px" /></Tooltip></p> |
| Target Metrics | <p>Usage: <Tooltip tip="high"><Icon icon="user" iconType="regular" color="#fff" size="14px" /><Icon icon="user" iconType="regular" color="#fff" size="14px" /><Icon icon="user" iconType="regular" color="#fff" size="14px" /><Icon icon="user" iconType="regular" color="#fff" size="14px" /></Tooltip></p>      |

# Credentials Setup

The AWS Redshift connector uses the following 12 connection parameters:

```json theme={null}
{
  "Host": "example-cluster.xxx123.us-xxx-1.redshift.amazonaws.com",
  "Port": "xxxx",
  "User": "xxx_user",
  "Password": "xxxxxx",
  "Database Name": "database_name",
  "Access Key Id": "xxxxx",
  "Secret Access Key": "xxxxxx",
  "S3 Bucket": "my-redshift-staging-bucket",
  "Default Target Schema": "xxx",
  "SSH Host": "12.345.67.89",
  "SSH User": "xxx-user",
  "SSH Key": "xxxx.pem"
}
```

Follow the steps below to find each of these in AWS.

### 1. `Host`

This is the Redshift endpoint hostname.

**Where to get it:**

1. Sign in to the AWS Console.

2. Open Amazon Redshift.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/AWS%20Redshift.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=763acac3c055075df0f3face81de733c" alt="Go to AWS Redshift" width="1770" height="660" data-path="connectors/images/AWS Redshift.png" />

3. Go to Clusters and select your Redshift cluster.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/AWS%20Redshift%20cluster.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=d24bf48fead0b5ce19ad3cae8694cff5" alt="Go to Clusters & select your redshift cluster" width="1936" height="1152" data-path="connectors/images/AWS Redshift cluster.png" />

4. In the cluster details, find the Endpoint.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/AWS%20Redshift%20Endpoint%20-%20Host.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=7a3470757f223b3b65390671abe169a0" alt="Locate Endpoint - Host" width="2832" height="618" data-path="connectors/images/AWS Redshift Endpoint - Host.png" />

**What to enter**:

Copy the hostname from the Endpoint (the part before the colon `:`), for example:

```
example-cluster.abc123.us-east-1.redshift.amazonaws.com
```

### 2. `Port`

The port Redshift listens on.

**Where to get it:**

Follow steps 1, 2, 3 and 4 for getting **Host** credentials. Then follow these steps:

5. In the cluster details, find the Endpoint.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/AWS%20Redshift%20Endpoint%20-%20Port.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=6e6833e08508a3007d01d50754afec52" alt="Locate Endpoint - Port" width="2748" height="604" data-path="connectors/images/AWS Redshift Endpoint - Port.png" />

Copy the port from the Endpoint (the part after the colon `:` and before the slash `/`).

### 3. `User`

The Redshift user is created inside the Redshift database.

**Where to get it:**

Follow steps 1, 2 and 3 for getting **Host** credentials. Then follow these steps:

4. Click the Properties tab.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/AWS%20Redshift%20Properties%20tab.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=21a80b824062e1f55aaf051109d695f7" alt="Navigate to the Properties tab" width="2164" height="386" data-path="connectors/images/AWS Redshift Properties tab.png" />

5. Scroll down to **Database configurations**.

6. Locate Admin user name.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/AWS%20Redshift%20Admin%20User%20Name.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=f8a9b7b5129c7c5787448b6643140230" alt="Locate Admin User Name" width="2272" height="646" data-path="connectors/images/AWS Redshift Admin User Name.png" />

<Info>
  If you need a non-admin or dedicated user instead, contact your AWS administrator.
</Info>

We can also run the following query in Query Editor v2:

```
SELECT usename FROM pg_user;
```

If you need to create a dedicated user for integrations, run:

```
CREATE USER sample_user PASSWORD 'StrongPassword123';
```

Use the created username as the User value when configuring the Redshift connector.

### 4. `Password`

The password is set when the Redshift user is created; it is **not** visible in the AWS console afterward, so save it then.

The password can be retrieved from **AWS Secrets Manager** if it was stored there at the time of cluster creation.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/AWS%20Redshift%20Secrets%20Manager.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=171fd2938a86e1e4e70f73f29993f2a6" alt="Go to Secrets Manager" width="1760" height="596" data-path="connectors/images/AWS Redshift Secrets Manager.png" />

**Where to set or reset the password**:

Follow steps 1, 2 and 3 for getting **Host** credentials. Then follow these steps:

4. Click on Query Data.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/AWS%20Redshift%20Query%20data.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=0e39ffbbcd92737b230b5ad0b59f4889" alt="Navigate to Query data" width="2808" height="554" data-path="connectors/images/AWS Redshift Query data.png" />

5. Open Query Editor v2.

6. Connect to your Redshift cluster or workgroup.

If creating a new user:

```
CREATE USER sample_user PASSWORD 'StrongPassword123';
```

If resetting the password for an existing user:

```
ALTER USER sample_user PASSWORD 'NewStrongPassword123';
```

Use the password specified in the SQL command as the Password value when configuring the Redshift connector.

### 5. `Database Name`

The database on your Redshift cluster—often `dev`, `analytics`, or another name your team uses.

**Where to get it:**

Follow steps 1, 2 and 3 for getting **Host** credentials. Then follow these steps:

4. Click the Properties tab.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/AWS%20Redshift%20Properties%20tab.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=21a80b824062e1f55aaf051109d695f7" alt="Navigate to the Properties tab" width="2164" height="386" data-path="connectors/images/AWS Redshift Properties tab.png" />

5. Scroll down to Database configurations.

6. Locate Database name.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/AWS%20Redshift%20Database%20name.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=e81c650974335d4e1976f1e5c23537d3" alt="Locate Database name" width="2502" height="698" data-path="connectors/images/AWS Redshift Database name.png" />

### 6. `Access Key Id`

The AWS access key used for S3 access.

**Where to get it:**

1. Open the AWS Console.

2. Go to IAM.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/IAM.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=e19b03e36f649cfb257bca9849f89084" alt="Go to IAM" width="2700" height="754" data-path="connectors/images/IAM.png" />

3. Select Users.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/IAM%20Users.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=f985e8465892807f7a5d1b734370836c" alt="Click on Users" width="2940" height="1070" data-path="connectors/images/IAM Users.png" />

4. From the list of Users, click the IAM user that will be used for the integration.

5. Open the Security credentials tab.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/IAM%20Security%20Credentials.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=b4df4f8d7875a4be8479d43730d01aef" alt="Go to Security Credentials to get Access Key workflow" width="2936" height="784" data-path="connectors/images/IAM Security Credentials.png" />

6. Under Access keys, create or view the relevant access key metadata.

### 7. `Secret Access Key`

The secret paired with the Access Key Id.

<Warning>
  AWS only shows the secret access key once at the time the access key is created. If it wasn’t saved, your admin must generate a new access key. Lost keys cannot be recovered.
</Warning>

**Where to get it:**

Create a new access key for the IAM user if needed, then copy the secret when it is shown and store it securely.

### 8. `S3 Bucket`

The S3 bucket used for staging data.

**Where to get it:**

1. Open the AWS Console.

2. Go to Amazon S3.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/AWS%20S3.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=35b1f21ffd04f785041f191c28893f06" alt="Navigate to S3" width="2582" height="726" data-path="connectors/images/AWS S3.png" />

3. Click on General purpose buckets.

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/AWS%20S3%20General%20Purpose%20Buckets.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=57a5ff028e8f756df9d1049a73070166" alt="Click on General Purpose Buckets" width="2020" height="532" data-path="connectors/images/AWS S3 General Purpose Buckets.png" />

4. From the list of buckets, copy the name of the bucket your team uses for Redshift staging.

### 9. `Default Target Schema`

Schema name for data loaded into Redshift.

<Info>
  Schemas are **not** visible in the AWS Console without SQL access. You will need to use a SQL client (e.g., DBeaver, TablePlus, or psql) connected to your Redshift cluster.
</Info>

**Where to get it:**

1. Open your **SQL client** and connect to your Redshift cluster using your Host, Port, Database, User, and Password credentials.

2. Once connected, run the following query:

```
SELECT schema_name FROM information_schema.schemata;
```

3. Pick the schema where data should land and enter it as Default Target Schema. If unsure, common choices are `public`, `analytics`, or `raw`. If none exists yet, ask your administrator to create one; `public` is a safe default.

### 10. `SSH Host`

The public IP address of the EC2 bastion host used to establish the SSH tunnel to the Redshift cluster.

<Info>
  SSH fields are only required if your Redshift cluster is not publicly accessible and requires an SSH tunnel. If your cluster is publicly accessible, you can leave these fields empty.
</Info>

**Where to get it:**

1. Go to AWS Console

2. Open EC2

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/EC2.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=c6e97e0ea44fda83cad3bc6390e12d24" alt="Click on EC2" width="1516" height="730" data-path="connectors/images/EC2.png" />

3. Click Instances

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/EC2%20Instances.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=85e2025acde662ad7abbdecae65abbb5" alt="Go to Instances" width="1550" height="708" data-path="connectors/images/EC2 Instances.png" />

4. Select the bastion host instance

5. Locate Public IPv4 address

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/EC2%20Public%20IPv4%20address.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=a29c3e841902e6c58f66daab2fc10c8c" alt="Locate Public IPv4 address" width="2070" height="616" data-path="connectors/images/EC2 Public IPv4 address.png" />

Use this value as the SSH Host.

### 11. `SSH User`

The username depends on the AMI; see [AMI default user names](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/managing-users.html#ami-default-user-names) in the AWS docs.

**Where to verify:**

Follow steps 1, 2, 3 and 4 for getting **SSH Host** credentials. Then follow these steps:

5. In the **Details** tab, check Platform details/AMI

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/EC2%20Platform%20Details.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=fbe58d81b5b07a34f7d6da7d53ce45d0" alt="Locate Platform Details/AMI" width="2408" height="496" data-path="connectors/images/EC2 Platform Details.png" />

If the instance is running Amazon Linux, the SSH user is ec2-user.

### 12. `SSH Key`

The private key file (.pem) associated with the EC2 key pair used when the bastion host instance was launched.

**Where to find the key pair name:**

Follow steps 1, 2, 3 and 4 for getting **SSH Host** credentials. Then follow these steps:

5. In the **Details** tab, locate Key pair assigned at launch

<img src="https://mintcdn.com/hotglue/O2e0ZuAUkBURj1g-/connectors/images/EC2%20Key%20pair.png?fit=max&auto=format&n=O2e0ZuAUkBURj1g-&q=85&s=2a4294a6e9f75463c32025c869e63ac8" alt="Locate Key pair assigned at launch" width="2172" height="378" data-path="connectors/images/EC2 Key pair.png" />

The name under Key pair assigned at launch matches your `.pem` file (for example, `my-bastion-key` → `my-bastion-key.pem`). That file was downloaded when the key pair was created and cannot be retrieved from AWS again.

You can also view the key pair in:

```
EC2 → Network & Security → Key Pairs
```

<Warning>
  If the key is lost, a new key pair must be created and associated with the instance.
</Warning>

# Target Changelog

<Accordion title="Target Changelog">
  | Version                                                                     | Notes |
  | :-------------------------------------------------------------------------- | :---- |
  | [v1.6.3](https://github.com/hotgluexyz/target-redshift/releases/tag/v1.6.3) |       |
</Accordion>
