# AWS Secret Manager Integration

If you'd like to add secrets to ConsoleMe's configuration, we recommend using our AWS Secrets Manager integration. Using this is simple:

1. Make a YAML file that contains the secrets that you would like to merge into your ConsoleMe configuration.

```
oidc_secrets:
  client_id: oidc_client_id
  secret: 12345SuperS3KrET!1
  client_scope:
    - email
    - openid
jwt_secret: "ConsoleMeJwtSigningSecret"
```

1. Add this secret to AWS Secrets Manager

{% hint style="warning" %}
The secret that you store in AWS Secrets Manager **must** be valid YAML.
{% endhint %}

1. Give permissions to your [Central Account](/consoleme/prerequisites/required-iam-permissions/central-account-consolemeinstanceprofile.md) role (The role that the ConsoleMe service uses on-instance) to read your new secret
2. Modify your ConsoleMe Configuration YAML to reference this secret in an `extends` parameter.

Example:

```
extends: 
  - AWS_SECRETS_MANAGER:my_secret_name_1
  
auth:
  get_user_by_oidc: true
  set_auth_cookie: true
.... Other configuration
```

1. Deploy ConsoleMe. If you're deploying the vanilla ConsoleMe docker image, you can specify an environment variable with an S3 location that ConsoleMe can download it's configuration from. More details are in the [Configuration](/consoleme/configuration.md) section.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hawkins.gitbook.io/consoleme/configuration/aws-secret-manager-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
