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

# Amazon Redshift Data API

> Use a cross-account IAM role so Iru Compliance can read Redshift Data API statement and schema metadata for clusters and serverless workgroups.

### About Amazon Redshift Data API

The **Data API** exposes **statement**, **database**, **schema**, and **table** listings without JDBC shells. Iru needs **`redshift-data:`** read actions plus **`redshift:DescribeClusters`** for provisioned clusters and **`redshift-serverless:List*`** helpers when workgroups are in scope. **`AmazonRedshiftDataFullAccess`** is convenient but includes **`ExecuteStatement`**; prefer the **inline** policy below for least privilege.

### How It Works

Iru runs in its own AWS account. To call the **Redshift Data API** on your behalf, you create an **IAM role** in your AWS account with two parts: a **trust policy** that allows Iru’s principal to call **`sts:AssumeRole`**, gated by the **External ID** from the wizard, and a **permissions policy** with read-only **`redshift-data:`** actions (plus the supporting **`redshift:`** / **`redshift-serverless:`** calls the connector needs, as in the inline example on the [**AWS**](#aws) tab). You then paste the role’s **ARN** back into Iru.

| Detail             | Value                  |
| ------------------ | ---------------------- |
| **Category**       | Databases              |
| **Authentication** | Cross-account IAM role |

### Prerequisites

* IAM rights to **create roles** in the account that owns Redshift resources.

### Connect Amazon Redshift Data to Iru

<Tabs>
  <Tab title="Iru Compliance">
    <Note>
      Start here: open the source wizard and copy the **trust policy** (and note the **external ID**). When you are ready to create the role in AWS, switch to the [**AWS**](#aws) tab and follow [**Create the IAM role**](#create-the-iam-role). After you have the **Role ARN**, return to the [**Iru Compliance**](#iru-compliance) tab and complete [**Submit the role ARN in Iru**](#submit-the-role-arn-in-iru) below.
    </Note>

    #### Get the trust policy from Iru

    <Steps>
      <Step title="Open Sources">
        In Iru Compliance, on the left navigation bar, expand **Compliance** and select **Sources**.

        <Frame>
          <img src="https://mintcdn.com/iru/7HsGH7lnQ8GpVmI0/assets/media/images/iru-navigation-compliance-sources.png?fit=max&auto=format&n=7HsGH7lnQ8GpVmI0&q=85&s=595982441fd777b333b3ecfea24adc24" alt="Left navigation: Compliance expanded, Sources selected" width="424" height="1056" data-path="assets/media/images/iru-navigation-compliance-sources.png" />
        </Frame>
      </Step>

      <Step title="Turn on Amazon Redshift Data">
        Find **Amazon Redshift Data** (use **Category** or **Search by name or description**). On that card, turn on the **toggle**. Leave the **Iru is requesting access to external services** wizard tab open.
      </Step>

      <Step title="Copy the trust policy JSON">
        The wizard shows the **trust policy** JSON your IAM role must use (**Principal** and **sts:ExternalId**). Below is an **example** of the structure; **copy the live JSON from your wizard** so the account, principal ARN, and external ID match exactly.

        ```json copy=false lines theme={null}
        {
          "Version": "2012-10-17",
          "Statement": [
            {
              "Effect": "Allow",
              "Principal": {
                "AWS": "arn:aws:iam::753695775620:role/IruConnect"
              },
              "Condition": {
                "StringEquals": {
                  "sts:ExternalId": "YOUR_EXTERNAL_ID"
                }
              },
              "Action": "sts:AssumeRole"
            }
          ]
        }
        ```
      </Step>

      <Step title="Switch to AWS to create the role">
        Keep the Iru wizard tab open for reference, then switch to the [**AWS**](#aws) tab and follow [**Create the IAM role**](#create-the-iam-role).
      </Step>
    </Steps>

    #### Submit the role ARN in Iru

    <Note>
      Finish the [**AWS**](#aws) tab first (through [**Create the IAM role**](#create-the-iam-role)) so you have the **Role ARN** from the new role.
    </Note>

    <Steps>
      <Step title="Paste the IAM Role ARN">
        Return to the Iru wizard tab. Paste the **Role ARN** where the connector prompts for it.
      </Step>

      <Step title="Finish the connection">
        Click **Submit Role**. When the connection succeeds, the wizard shows **Connection Configured**.
      </Step>

      <Step title="Confirm the source is Active">
        Close the **Iru is requesting access to external services** browser tab, then return to **Compliance** → **Sources** and confirm the **Amazon Redshift Data** card is **Active**.
      </Step>
    </Steps>
  </Tab>

  <Tab title="AWS">
    <Note>
      Complete [**Get the trust policy from Iru**](#get-the-trust-policy-from-iru) on the [**Iru Compliance**](#iru-compliance) tab before you create this role. Use the **external ID** and trust policy from the live wizard when you configure **Trusted entity**.
    </Note>

    #### Create the IAM role

    <Steps>
      <Step title="Start the Create role workflow">
        Open **IAM** → **Roles** → **Create role**.
      </Step>

      <Step title="Configure trusted entity">
        Choose **AWS account** → **Another AWS account**. Enter **`753695775620`** (or the ID Iru shows). Enable **Require external ID** and paste the external ID from Iru.
      </Step>

      <Step title="Attach the recommended inline policy">
        Attach an **inline policy** (recommended over **`AmazonRedshiftDataFullAccess`** for least privilege). The JSON below is an **example** of the permissions shape; adjust if your security team requires fewer actions.

        ```json lines theme={null}
        {
          "Version": "2012-10-17",
          "Statement": [
            {
              "Effect": "Allow",
              "Action": [
                "redshift-data:DescribeStatement",
                "redshift-data:DescribeTable",
                "redshift-data:GetStatementResult",
                "redshift-data:ListDatabases",
                "redshift-data:ListSchemas",
                "redshift-data:ListStatements",
                "redshift-data:ListTables"
              ],
              "Resource": "*"
            },
            {
              "Effect": "Allow",
              "Action": [
                "redshift:DescribeClusters",
                "redshift-serverless:ListNamespaces",
                "redshift-serverless:ListWorkgroups"
              ],
              "Resource": "*"
            }
          ]
        }
        ```
      </Step>

      <Step title="Name the role and copy the ARN">
        Name the role, create it, and copy the **Role ARN**. Switch back to the [**Iru Compliance**](#iru-compliance) tab and complete [**Submit the role ARN in Iru**](#submit-the-role-arn-in-iru).
      </Step>
    </Steps>

    <Note>
      Continue on the [**Iru Compliance**](#iru-compliance) tab to paste the **Role ARN** and finish the wizard ([**Submit the role ARN in Iru**](#submit-the-role-arn-in-iru)).
    </Note>
  </Tab>
</Tabs>

### Troubleshooting

<AccordionGroup>
  <Accordion title="Nothing opens when you turn the source on">
    Check **pop-up blocker** settings for the Iru site and try again.
  </Accordion>

  <Accordion title="DescribeClusters denied">
    Required when resolving **cluster IDs** - add the **`redshift:`** statement block.
  </Accordion>

  <Accordion title="Serverless gaps">
    Extend with **`redshift-serverless:Get*`** per **[Amazon Redshift Serverless](/en/compliance/sources/amazon-redshift-serverless-source)**.
  </Accordion>

  <Accordion title="AssumeRole denied">
    External ID mismatch.
  </Accordion>
</AccordionGroup>

### Related Articles

<CardGroup cols={2}>
  <Card title="AWS Redshift" icon="link" href="/en/compliance/sources/amazon-redshift-source">
    Connect and manage the related source in Compliance.
  </Card>

  <Card title="Amazon Redshift Serverless" icon="link" href="/en/compliance/sources/amazon-redshift-serverless-source">
    Connect and manage the related source in Compliance.
  </Card>

  <Card title="Sources Management" icon="plug" href="/en/compliance/sources-management">
    Browse and manage every Compliance source.
  </Card>

  <Card title="Getting Started With Compliance" icon="rocket" href="/en/compliance/getting-started-with-compliance">
    Frameworks, actions, and **Artifacts**.
  </Card>
</CardGroup>
