# Keystore AWS Parameter Store (recommended)

Follow these steps to set up your keystore passphrase on AWS Parameter Store.

## Add to parameter store

1. Go to *Systems Manager*\*
2. Click on **Parameter Store** under Application Management on left sidebar
3. Click on \**Create parameter* button
4. Steps
   1. Name: */Hop/Bonder/Keystore/Pass*
   2. Check **SecureString** under Type
   3. Enter keystore password in the *Value* text field
   4. Click the **Create parameter** button

## Attach policy to role

1. Go to IAM
2. Click on **Roles** on left sidebar
   1. Filter for your EC2 Role. E.g. *HopNodeEC2Role*
   2. Click on role link
3. Click on **Attach policies button**
4. Click on **Create policy** button (this will open a new tab)
   1. Service: **Systems Manager**
   2. Check **Read**
   3. Check **GetParameter**
   4. Resources
      1. Add ARN
      2. Region: **us-east-1**
      3. Parameter name: *Hop/Bonder/\**
   5. Click on **Next: Tags** button
   6. Click on **Next: Review** button
   7. Policy
   8. Name: *HopNodeParameterStorePolicy*
   9. Click on **Create policy** button
   10. You may now close this tab.
5. Back on main tab
6. Click refresh button
7. Filter for *HopNodeParameterStorePolicy*
8. Check box next to policy name
9. Click the **Attach policy** button

## Config

Update your config `~/.hop/config.json` to use the password from Parameter Store:

***Note**: The entirety of the config file will be explained in the next section, so feel free to move on and return here when you need to add the keystore config.*

```json
{
  "keystore": {
    "location": "~/.hop/keystore.json",
    "parameterStore": "/Hop/Bonder/Keystore/Pass",
    "awsRegion": "us-east-1"
  }
}
```


---

# 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://docs.hop.exchange/developer-docs/hop-node/running-a-hop-bonder/configuring-the-bonder/keystore/keystore-aws-parameter-store.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.
