> ## Documentation Index
> Fetch the complete documentation index at: https://bruno-a6972042-mintlify-6a414c21.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring and Fetching Secrets

<Note>
  Starting from Bruno v4.0.0, secret manager configuration has moved from **Collection > Secrets** to **Environment > External Secrets**.
</Note>

1. Go to **Environment** > **External Secrets** and select **AWS Secrets Manager**

<img src="https://mintcdn.com/bruno-a6972042-mintlify-6a414c21/weyhaBT1u2RRRo4Q/images/screenshots/v4/secret-managers/external-secret-overview.webp?fit=max&auto=format&n=weyhaBT1u2RRRo4Q&q=85&s=353acf01fef95c569cdbf17ae12d2d43" alt="external-secret-overview" width="2602" height="1214" data-path="images/screenshots/v4/secret-managers/external-secret-overview.webp" />

2. You will see the configured **Secret Manager** accounts list from **Preferences** settings. Select the **AWS Secrets Manager** account you want to use.

* Use **Add new account** button to add a new AWS Secrets Manager account

<img src="https://mintcdn.com/bruno-a6972042-mintlify-6a414c21/weyhaBT1u2RRRo4Q/images/screenshots/v4/secret-managers/aws-account-config.webp?fit=max&auto=format&n=weyhaBT1u2RRRo4Q&q=85&s=ec85b52d5685e2d1d06aa5990a570ba0" alt="aws-account-config" width="2602" height="1040" data-path="images/screenshots/v4/secret-managers/aws-account-config.webp" />

3. Enter a **Name** and the **AWS Secret Name or ARN** for the secret you want to fetch.

   * **Name** - the alias used to reference the secret in Bruno, e.g. `apiCredentials`
   * **AWS Secret Name / ARN** - the exact secret name or full ARN, e.g. `prod/api-key` or `arn:aws:secretsmanager:us-east-1:123456789012:secret:prod/api-key`

4. Click the **Fetch Secrets** button in the top-right corner.

5. The fetched secret keys and their values appear in the **Secret Keys** column.

Use three dots menu to:

* **Edit account** to edit the account details
* **Remove secret manager** to remove the secret manager configuration

<img src="https://mintcdn.com/bruno-a6972042-mintlify-6a414c21/weyhaBT1u2RRRo4Q/images/screenshots/v4/secret-managers/aws-edit-account.webp?fit=max&auto=format&n=weyhaBT1u2RRRo4Q&q=85&s=d08c29336f2801d3d8c8c707c0a2bdff" alt="aws-edit-account" width="2602" height="1040" data-path="images/screenshots/v4/secret-managers/aws-edit-account.webp" />
