Swarmz
IntegrationsData and analytics

Amazon Redshift

Discover warehouse metadata and run bounded statements through the Redshift Data API

Connect Amazon Redshift when a project needs warehouse metadata or SQL results through the Redshift Data API. Swarmz fixes each connection to one serverless workgroup or provisioned cluster and signs every request on the server.

Availability

A Swarmz administrator must show Amazon Redshift under Platform config > Integrations and enable the data and analytics connector flag. Redshift does not require a Swarmz OAuth application.

Before you connect

Enable the Redshift Data API and create an IAM principal with the minimum actions the project needs. Do not use an AWS root access key. AWS documents Data API authorization.

Choose one deployment target:

  • For Redshift Serverless, enter a workgroup name. Do not enter a cluster identifier or database user.
  • For a provisioned cluster, enter a cluster identifier. Add a database user only when your authentication setup requires it.

Connect Amazon Redshift

  1. In the Swarmz project, open Settings > Integrations and select Amazon Redshift.
  2. Enter the AWS access key ID, secret access key, and optional session token.
  3. Enter the AWS region and Database.
  4. Enter serverless or provisioned under Deployment type.
  5. Enter the matching workgroup or cluster field. Leave fields for the other deployment type empty.
  6. Select Save connection.

Swarmz signs a Data API request before saving. The target stays in server-held connection metadata; an AI operation cannot switch the request to another cluster or workgroup.

Available operations

OperationWhat it doesLimit per minute
list_databasesLists databases with an optional pattern30
list_schemasLists schemas with an optional pattern30
list_tablesLists tables with optional schema and table patterns30
describe_tableReads columns for one table30
execute_statementStarts an asynchronous SQL statement10
describe_statementReads statement status30
get_statement_resultReads one bounded result page30
cancel_statementCancels an active statement10

Executing or canceling a statement requires allow-once approval. SQL supports named parameters so the generated app does not need to concatenate user values into a query.

Ask the AI to use Amazon Redshift

  • “List the schemas and build an orders dashboard from the warehouse tables.”
  • “Run this parameterized customer query, poll it, and render the completed result.”
  • “Cancel the long-running statement after showing me its status and ID.”

Verify Amazon Redshift

  1. List databases, schemas, and tables.
  2. Describe one known table and confirm its columns.
  3. Execute select 1, poll the returned statement ID, then read the result.
  4. Confirm the statement in the Redshift query history for the configured target.

An authorization error means the IAM policy, database grants, or target identity does not permit the operation. Rotate credentials in Swarmz before disabling the old IAM key. Select Remove and revoke the key to remove access.

On this page