> For the complete documentation index, see [llms.txt](https://canvasapp.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://canvasapp.gitbook.io/docs/getting-started/connecting-your-data/redshift.md).

# Redshift

Canvas requires the following fields to connect to your Redshift instance:

1. Host
2. Port
3. Database
4. Username and Password

### Host

The public address of your Redshift instance. You can find this in the AWS console. Note that you might need to check `Enable Public Access` from the AWS console. Additionally, if you block public access to your database, you will need to whitelist the following IP addresses in your database's security group:

* 44.224.89.3
* 35.80.194.138
* 44.241.79.133

### Port

Also available in the AWS console. This is `5439` by default.

### Database

The database that you would like to work with in Canvas.

### Username and Password

To display your data, Canvas requires a user with usage grants on any schemas you want to access and select grants on any tables and views you want to access. Following the [principle of least privilege](https://en.wikipedia.org/wiki/Principle_of_least_privilege), we recommend creating a user for Canvas with the minimum set of permission necessary. The following script will create a user and grant it permissions for the schema `public`:

```
CREATE USER 'canvas_user' PASSWORD 'your-strong-password';

// Grant access to schema "public". Repeat this for any other schemas you want to access
GRANT USAGE ON SCHEMA "public" TO canvas_user;
GRANT SELECT ON ALL TABLES IN SCHEMA "public" TO canvas_user;
// This grants access to all future tables
ALTER DEFAULT PRIVILEGES IN SCHEMA "public" GRANT SELECT ON TABLES TO canvas_user;
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://canvasapp.gitbook.io/docs/getting-started/connecting-your-data/redshift.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
