> ## 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.

# AWS Secrets Manager

> Connect AWS Secrets Manager to Iru Compliance with a cross-account IAM role to inventory secrets, rotation schedules, and tags without reading secret values.

### About AWS Secrets Manager

This connector enumerates **secret metadata**, **rotation configuration**, **resource policies**, and **tags** - but **never** calls **`GetSecretValue`**. Avoid **`SecretsManagerReadWrite`** because it grants **`GetSecretValue`**. Use the inline JSON below unless your cloud security group publishes an audited equivalent.

### How It Works

Iru runs in its own AWS account. To read **Secrets Manager** metadata in your account, you create an **IAM role** with **`sts:AssumeRole`** trust (wizard **External ID**) and **`secretsmanager:`** permissions scoped to **metadata** reads (not retrieving secret **values**, unless you deliberately add those actions). Paste the role’s **ARN** back into Iru.

Standard **`sts:AssumeRole`** trust plus explicit **`secretsmanager`** actions that skip value retrieval.

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

### Prerequisites

* IAM rights to **create roles** and **inline policies**.

### Connect AWS Secrets Manager to Iru

> [tab] 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 in AWS**](#create-the-iam-role-in-aws). 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.
>
> #### Get the trust policy from Iru
>
> **1. Open Sources**
>
> In Iru Compliance, on the left navigation bar, expand **Compliance** and select **Sources**.
>
> ![Left navigation: Compliance expanded, Sources selected](https://mintcdn.com/iru/tI0HDLDwHj8r9Ile/assets/media/images/iru-navigation-compliance-sources.png?fit=max\&auto=format\&n=tI0HDLDwHj8r9Ile\&q=85\&s=87dcef15fc17d2fb9a6e53f454e41710)
>
> **2. Turn on AWS Secrets Manager**
>
> Find **AWS Secrets Manager** (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.
>
> **3. 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"
>     }
>   ]
> }
> ```
>
> **4. 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 in AWS**](#create-the-iam-role-in-aws).
>
> #### Submit the role ARN in Iru
>
> > [!NOTE]
> >
> > Finish the [**AWS**](#aws) tab first (through [**Create the IAM role in AWS**](#create-the-iam-role-in-aws)) so you have the **Role ARN** from the new role.
>
> **1. Paste the IAM Role ARN**
>
> Return to the Iru wizard tab. Paste the **Role ARN** where the connector prompts for it.
>
> **2. Finish the connection**
>
> Select **Submit Role**. When the connection succeeds, the wizard shows **Connection Configured**.
>
> **3. Confirm the source is Active**
>
> Close the **Iru is requesting access to external services** browser tab, then return to **Compliance** → **Sources** and confirm the **AWS Secrets Manager** card is **Active**.

> [tab] 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**.
>
> #### Create the IAM role in AWS
>
> **1. Start the Create role workflow**
>
> Open **IAM** → **Roles** → **Create role**.
>
> **2. 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.
>
> **3. Attach the metadata-only inline policy**
>
> Add this **inline policy** (do **not** attach **`SecretsManagerReadWrite`**):
>
> ```json lines theme={null}
> {
>   "Version": "2012-10-17",
>   "Statement": [
>     {
>       "Effect": "Allow",
>       "Action": [
>         "secretsmanager:DescribeSecret",
>         "secretsmanager:ListSecrets",
>         "secretsmanager:ListSecretVersionIds",
>         "secretsmanager:GetResourcePolicy"
>       ],
>       "Resource": "*"
>     }
>   ]
> }
> ```
>
> > [!NOTE]
> >
> > **`GetSecretValue`** is intentionally omitted. Iru cannot fetch cleartext secrets with this policy.
>
> **4. 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).
>
> > [!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)).

### Troubleshooting

> [accordion] Nothing opens when you turn the source on
>
> Check **pop-up blocker** settings for the Iru site and try again.

> [accordion] Specific secrets invisible
>
> Secret resource policies may deny cross-account principals - adjust policies cautiously with security stakeholders.

> [accordion] AssumeRole denied
>
> External ID mismatch.

### Considerations

> [card] Secrets are Regional: inventory spans enabled…
>
> Secrets are **Regional**; inventory spans enabled Regions.

### Related Articles

> [card] [Sources Management](https://docs.iru.com/en/compliance/sources-management.md)
>
> Browse and manage every Compliance source.

> [card] [Getting Started With Compliance](https://docs.iru.com/en/compliance/getting-started-with-compliance.md)
>
> Frameworks, actions, and **Artifacts**.

> [card] [Iru Overview](https://docs.iru.com/en/iru/platform-overview/iru-overview.md)
>
> How Endpoint, Compliance, and Identity fit together.

> [card] [Artifacts Management](https://docs.iru.com/en/compliance/artifacts-management.md)
>
> Upload, review, and organize evidence from sources and actions.


## Related topics

- [Sources Management](https://docs.iru.com/en/compliance/sources-management.md)
- [AWS Identity and Access Management (IAM)](https://docs.iru.com/en/compliance/sources/aws-identity-and-access-management-iam-source.md)
- [Postman](https://docs.iru.com/en/compliance/sources/postman-source.md)
