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

# Configuring and Fetching Secrets

## Overview

This guide walks you through the process of configuring and fetching secrets from AWS Secrets Manager in Bruno. You'll learn how to set up secret mappings and retrieve them securely for use in your API requests.

<Info>
  Secrets in Bruno are environment-specific, so ensure you have a collection environment selected before proceeding.
</Info>

## Prerequisites

* AWS Secrets Manager provider already configured in Bruno
* Collection environment selected
* Appropriate AWS permissions to access secrets

## Configuration Steps

### Step 1: Access Collection Secrets

1. Open your collection in Bruno
2. Navigate to **Collection Settings**
3. Go to the **Secrets** section

### Step 2: Select AWS Secrets Manager Provider

1. In the Secrets section, click on **Select Provider**
2. Choose **AWS Secrets Manager** from the dropdown menu

<img src="https://mintcdn.com/bruno-a6972042/bKrHa_JvyAqCslj1/images/screenshots/secret-variables/aws-secret-manager/4-select-aws-secrets.webp?fit=max&auto=format&n=bKrHa_JvyAqCslj1&q=85&s=90429214fa08db46e0accc57aa7fc8ec" alt="Select AWS Secrets Manager Provider" width="2468" height="882" data-path="images/screenshots/secret-variables/aws-secret-manager/4-select-aws-secrets.webp" />

### Step 3: Add Secret Mappings

1. Click the **+ Add Secret** button to create a new secret mapping
2. In the configuration dialog:
   * **Name**: Enter a friendly name for the secret (this will be used in Bruno)
   * **AWS Secret Name/ARN**: Specify the exact AWS secret name or ARN

<img src="https://mintcdn.com/bruno-a6972042/bKrHa_JvyAqCslj1/images/screenshots/secret-variables/aws-secret-manager/5-aws-secret-dialog-box.webp?fit=max&auto=format&n=bKrHa_JvyAqCslj1&q=85&s=6bde6e8aa34a206ac18006b49e620ea6" alt="AWS Secret Configuration Dialog" width="2468" height="882" data-path="images/screenshots/secret-variables/aws-secret-manager/5-aws-secret-dialog-box.webp" />

### Step 4: Fetch Secrets from AWS

1. Click the **Fetch Secrets** button in the top-right corner
2. Select the appropriate AWS account from the dropdown
3. Click **Fetch** to retrieve the secrets from AWS Secrets Manager

<img src="https://mintcdn.com/bruno-a6972042/bKrHa_JvyAqCslj1/images/screenshots/secret-variables/aws-secret-manager/6-aws-fetch-secrets.webp?fit=max&auto=format&n=bKrHa_JvyAqCslj1&q=85&s=668301330e87ab4f73c6d73861a22698" alt="Fetch Secrets from AWS" width="2468" height="882" data-path="images/screenshots/secret-variables/aws-secret-manager/6-aws-fetch-secrets.webp" />

After successful fetching, you should see the secret values populated in the Secrets section and available for use in your requests.

<img src="https://mintcdn.com/bruno-a6972042/MFEbYs75EK0H0fUz/images/screenshots/secret-variables/aws-secret-manager/7-fetch-secrets.webp?fit=max&auto=format&n=MFEbYs75EK0H0fUz&q=85&s=c6fbadc4de8945f8586e96218b60a663" alt="fetched-secrets" width="2476" height="1128" data-path="images/screenshots/secret-variables/aws-secret-manager/7-fetch-secrets.webp" />
