# Generating base instance

In this section, we will create a single EC2 instance that we will use as a template for the other two EC2 instances. This allows us to perform these tasks once and then have the output replicated to all the instances.

#### Create a Base Instance[​](https://docs.constellationnetwork.io/sdk/guides/deploy-a-metagraph/base-instance/generating-base-instance#create-a-base-instance) <a href="#create-a-base-instance" id="create-a-base-instance"></a>

Navigate to the **`Instances`** section on the Amazon EC2 console.

![base instance 01](https://docs.constellationnetwork.io/assets/images/base-intance-01-49a325ca0d7ac7f86fd9ebc64c9f13fd.png)

**Click on `Launch Instances`.**[**​**](https://docs.constellationnetwork.io/sdk/guides/deploy-a-metagraph/base-instance/generating-base-instance#click-on-launch-instances)

Assign a name to your instance. For this guide, we will call it **`Metagraph base image`**.

**Choose an AMI**[**​**](https://docs.constellationnetwork.io/sdk/guides/deploy-a-metagraph/base-instance/generating-base-instance#choose-an-ami)

In the **`Choose an Amazon Machine Image (AMI)`** section, select `Ubuntu` and then `Ubuntu server 20.04`. You should keep `64-bit (x86)`.

<figure><img src="https://docs.constellationnetwork.io/assets/images/base-intance-02-307116115eb0f444a4e882e1cacc5a39.png" alt="" width="563"><figcaption></figcaption></figure>

For the instance type, choose a model with **`4 vCPUs`** and **`16 GiB memory`**. In this case, we'll use the **`t2.xlarge`** instance type.

**Select a Key Pair**[**​**](https://docs.constellationnetwork.io/sdk/guides/deploy-a-metagraph/base-instance/generating-base-instance#select-a-key-pair)

In the **`Configure Instance Details`** step, select the key pair you created earlier in the **`Key pair name`** field.

<figure><img src="https://docs.constellationnetwork.io/assets/images/base-intance-04-c0dea98ebcf98d83f6c091084f80ea80.png" alt=""><figcaption></figcaption></figure>

**Select Security Group**[**​**](https://docs.constellationnetwork.io/sdk/guides/deploy-a-metagraph/base-instance/generating-base-instance#select-security-group)

In the `Network settings` section, you select the security group you created earlier.

<figure><img src="https://docs.constellationnetwork.io/assets/images/base-intance-05-8c2f23e35a5b8f83cb60273ec6e82169.png" alt="" width="563"><figcaption></figcaption></figure>

**Configure Storage**[**​**](https://docs.constellationnetwork.io/sdk/guides/deploy-a-metagraph/base-instance/generating-base-instance#configure-storage)

In the `Configure storage` section, you specify the amount of storage for the instance. For this tutorial, we'll set it to **`160 GiB`**.

<figure><img src="https://docs.constellationnetwork.io/assets/images/base-intance-06-f5ba059a58d87a95fe58cfe35a97ad8d.png" alt="" width="563"><figcaption></figcaption></figure>

**Launch Instance**[**​**](https://docs.constellationnetwork.io/sdk/guides/deploy-a-metagraph/base-instance/generating-base-instance#launch-instance)

Finally, press `Launch instance`. Your base instance should now be running.

You can check the status of your instance in the **`Instances`** section of the Amazon EC2 console.

<figure><img src="https://docs.constellationnetwork.io/assets/images/base-intance-07-911a523035be0cca56de430e3f094d84.png" alt=""><figcaption></figcaption></figure>


---

# 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.constellationnetwork.io/metagraph-development/guides/deploy-a-metagraph/base-instance/generating-base-instance.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.
