Amazon Redshift lets the AI look at your warehouse and run SQL, so your app can show reports from data you already store there.
What you can ask for#
List the schemas and tables in my Redshift database.
Show monthly orders for the last 12 months as a chart. Limit the query to 1,000 rows.
Build a dashboard page from this saved query and refresh it each time the page opens.
Connect Amazon Redshift#
Step 1: Find the connector
Open Tools, then Connectors, and search for Amazon Redshift. You can also go to Settings, then Connectors, in your dashboard.
Step 2: Select Connect
Select Connect to open the secure form.
Step 3: Enter the details
Fill in AWS access key ID, AWS secret access key, AWS session token (optional), AWS region, Database, Deployment type, Serverless workgroup (when applicable) (optional), Provisioned cluster (when applicable) (optional) and Database user (optional). Hidden fields show as dots; use the eye icon to check what you typed.
Step 4: Save
Select Save connection. Swarmz encrypts the credentials and only decrypts them to call Amazon Redshift for you. Everyone in your workspace can then use the connection.
Where to find your credentials#
Create an AWS user or role for the Redshift Data API with only the access you need. Do not use a root access key. Choose serverless or provisioned for the deployment type, then fill in either the workgroup or the cluster, not both.
What the AI can and can't do#
- List databases, schemas and tables, and run SQL statements.
- Fetch results once a statement has finished.
- Each connection is fixed to one workgroup or cluster. The AI cannot switch to another one.
- Apps you publish can call this connector too, not just the builder.
- Changes ask for your approval by default. You can adjust this under Agent permissions on the connection. See What an integration can access.
Troubleshooting#
Setup fails.
Check the region, database, deployment type and that the Data API is enabled for your cluster or workgroup.
A statement is still running.
Redshift runs statements in the background. Ask the AI to check again in a moment.
My session token expired.
Edit the connection and enter a new access key set.
General steps for any connector are in Connect an integration. Keys and secrets are covered in Secrets and API keys. To remove it, see Disconnect an integration.
What Swarmz can do with it
Warehouse metadata
List databases, schemas, tables, and table columns.
Asynchronous statements
Execute, monitor, read, and cancel bounded Data API statements.
More in Data & analytics
Still stuck?
A person from Swarmz Support can take a look.