> 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.edgegap.com-fr/docs/tools-and-integrations/container/external-registries/aws-ecr.md).

# AWS ECR

*Assurez-vous d'avoir la dernière version de l'AWS CLI et de Docker installée.*

### Vous devez avoir à portée de main

* [x] La région AWS de votre ECR
* [x] L'URI du registre

### Pour obtenir ces informations, allez dans la console AWS

1. Allez dans la région de votre ECR
2. Allez dans Elastic Container Registry
3. Puis dans Repositories
4. Cliquez sur le repository dont vous souhaitez obtenir l'image
5. Cliquez sur le **Afficher les commandes de push**.

### Séparez l'URI

Par défaut l'AWS **URI** contient le registre et l'image, vous devrez les séparer

Imaginez avoir ceci **URI**: **597351113950.dkr.ecr.ca-central-1.amazonaws.com/example**

Votre **Dépôt** sera : **597351113950.dkr.ecr.ca-central-1.amazonaws.com**

et votre **Image** sera : **exemple**

### Obtenez le mot de passe

Pour obtenir votre mot de passe de connexion ECR

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

{% hint style="success" %}
Vous pouvez le changer pour votre région (par ex. us-east-1, us-west-1, etc.).
{% endhint %}

#### Plus d'infos sur [**Doc AWS**](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)

### Ajoutez l'application à Edgegap

#### Exemple d'API

{% hint style="info" %}
Le nom d'utilisateur sera toujours 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>",
    [...]
}
```

#### Depuis le tableau de bord

Depuis notre tableau de bord, le **jeton du registre privé** sera votre **mot de passe de connexion ecr**

<figure><img src="/files/420b2c4b8fa0c8f56260d1eb3623b70b50e8712f" 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.edgegap.com-fr/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.
