> 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/base-instance/generating-ami-image-from-base-instance.md).

# Generating AMI (Image) from Base Instance

Now that our base instance is configured, we can generate an AMI (Amazon Machine Image) from the instance. The AMI will allow us to create our other two EC2 instances as exact copies of the one we've already configured.

**Create the Image**

To generate the AMI, select your instance and then actions → Image and templates → Create Image

<figure><img src="https://docs.constellationnetwork.io/assets/images/generating-AMI-from-instance-01-8de4798908bdacbb8c742f2948018eca.png" alt=""><figcaption></figcaption></figure>

We can repeat the same name when configuring the image:

<figure><img src="https://docs.constellationnetwork.io/assets/images/generating-AMI-from-instance-02-ee73cc26846530499a131d3d13197b38.png" alt=""><figcaption></figcaption></figure>

**Press Create Image**

<figure><img src="https://393710127-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxrXzGdpjkF8q1pQcgabg%2Fuploads%2F7qAa0412GFhGoBMwwmEL%2Fimage.png?alt=media&amp;token=25cba994-4a99-498c-bc7f-75f4bcb9e6ce" alt=""><figcaption></figcaption></figure>

This step will take some time but you can follow progress on the AMIs page.

**Wait Until the Image is in Available Status**

![Generating AMI](https://docs.constellationnetwork.io/assets/images/generating-AMI-from-instance-04-ed4e6e011a53d939ef05bb813cdeea6b.png)

**Delete Base Instance**

Once the image is ready we can delete the instance used to generate the image. To do this, go back to the instances page, select the instance, and then press&#x20;


---

# 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/base-instance/generating-ami-image-from-base-instance.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.
