> For the complete documentation index, see [llms.txt](https://hawkins.gitbook.io/consoleme/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hawkins.gitbook.io/consoleme/configuration/aws-secret-manager-integration.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
