> For the complete documentation index, see [llms.txt](https://kb.chrisltd.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb.chrisltd.com/computing/aws-cloud-9.md).

# AWS Cloud 9

When creating your instance if you see this error:&#x20;

> The following resource(s) failed to create: \[Instance]&#x20;

It’s because you have a legacy account. Setting up a new server now requires you to explicitly pick a subnet in the advanced settings.

## Setting up SSH Keys

```
$ ssh-keygen -t rsa -b 4096 -C "your@email.com"
$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsa
$ cat ~/.ssh/id_rsa.pub
```

Copy output to Github or Bitbucket where you're pushing and pulling your code from.

## Setting up Docker Compose

Instructions for installing docker compose <https://docs.docker.com/compose/install/#install-compose>

```
$ sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
$ sudo chmod +x /usr/local/bin/docker-compose
```

## Resize Cloud9 instance

Check space usage:

```
$ df -h
```

Follow these instructions: <https://docs.aws.amazon.com/cloud9/latest/user-guide/move-environment.html#move-environment-resize>


---

# 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:

```
GET https://kb.chrisltd.com/computing/aws-cloud-9.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.
