> For the complete documentation index, see [llms.txt](https://docs.edgegap.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.edgegap.com/docs/tools-and-integrations/container/external-registries/aws-ecr.md).

# AWS ECR

*Make sure that you have the latest version of the AWS CLI and Docker installed.*

### You need to have on hand

* [x] The AWS Region of your ECR
* [x] The Registry URI

### To get this information, go to AWS Console

1. Go to your ECR Region
2. Go to Elastic Container Registry
3. Then to Repositories
4. Click on the Repository you wish to get your image from
5. Click on the **View push commands**.

### Split the URI

By default the AWS **URI** contains the Registry and the Image, you will need to split those

Imagine having this **URI**: **597351113950.dkr.ecr.ca-central-1.amazonaws.com/example**

Your **Repository** will be: **597351113950.dkr.ecr.ca-central-1.amazonaws.com**

and your **Image** will be: **example**

### Get the password

To get your ECR Login Password

```bash
aws ecr get-login-password --region ca-central-1
```

{% hint style="success" %}
You can change to your region (e.g. us-east-1, us-west-1, etc).
{% endhint %}

#### More info on [**AWS Doc**](https://docs.aws.amazon.com/cli/latest/reference/ecr/get-login-password.html)[**umentation**](https://docs.aws.amazon.com/cli/latest/reference/ecr/get-login-password.html)

### Add the app to Edgegap

#### API Example

{% hint style="info" %}
The username will always be AWS
{% endhint %}

```json
{
    [...]
    "docker_repository": "597351113950.dkr.ecr.ca-central-1.amazonaws.com",
    "docker_image": "example",
    "docker_tag": "v1",
    "private_username": "AWS",
    "private_token": "<ecr login-password>",
    [...]
}
```

#### From Dashboard

From our Dashboard, The **Private registry token** will be your **ecr login-password**

<figure><img src="/files/Bpk3y99Qogim6PrM6hy7" alt=""><figcaption></figcaption></figure>


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.edgegap.com/docs/tools-and-integrations/container/external-registries/aws-ecr.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
