> For the complete documentation index, see [llms.txt](https://docs.constellationnetwork.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.constellationnetwork.io/metagraph-development/guides/deploy-a-metagraph/key-pairs.md).

# Key pairs

Key pairs are a crucial part of securing your instances. They consist of a public key that AWS stores and a private key file that you store. The private key file is used to SSH into your instances securely.

#### Use the following steps to create a keypair[​](https://docs.constellationnetwork.io/sdk/guides/deploy-a-metagraph/key-pairs#use-the-following-steps-to-create-a-keypair) <a href="#use-the-following-steps-to-create-a-keypair" id="use-the-following-steps-to-create-a-keypair"></a>

Navigate to the **`Key pairs`** page on the Amazon EC2 console.

![Key pair aws](https://docs.constellationnetwork.io/assets/images/key-pair-1-8b538ec60600215ee510173cb9274227.png)

**Click on `Create key pair`**[**​**](https://docs.constellationnetwork.io/sdk/guides/deploy-a-metagraph/key-pairs#click-on-create-key-pair)

Provide a unique name for your key pair, such as: `MetagraphKeyPair`

Your screen should now look similar to this:

![Key pair aws](https://docs.constellationnetwork.io/assets/images/key-pair-2-6fff96c2778fcae5d2f53af67ea1d139.png)

After you click **`Create key pair`**, a new key pair will be generated, and your browser will automatically download a file that contains your private key.

{% hint style="warning" %}
**important**

Safeguard this file as it will be necessary for SSH access to your instances. Do not share this file or expose it publicly as it could compromise the security of your instances.

Store your keypair on your local machine in a secure location. You will need it to connect to your EC2 instances.
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.constellationnetwork.io/metagraph-development/guides/deploy-a-metagraph/key-pairs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
