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

# AWS ECR

*최신 버전의 AWS CLI와 Docker가 설치되어 있는지 확인하세요.*

### 준비해야 합니다

* [x] ECR의 AWS 리전
* [x] 레지스트리 URI

### 이 정보를 얻으려면 AWS 콘솔로 이동하세요

1. ECR 리전으로 이동하세요
2. Elastic Container Registry로 이동하세요
3. 그런 다음 Repositories로 이동하세요
4. 이미지를 가져올 저장소를 클릭하세요
5. 을(를) 클릭하세요 **푸시 명령 보기**.

### URI를 분할하세요

기본적으로 AWS **URI** 는 레지스트리와 이미지를 포함하므로 이를 분리해야 합니다

다음과 같은 것을 가정해 보세요 **URI**: **597351113950.dkr.ecr.ca-central-1.amazonaws.com/example**

당신의 **저장소** 다음이 됩니다: **597351113950.dkr.ecr.ca-central-1.amazonaws.com**

그리고 당신의 **이미지** 다음이 됩니다: **예시**

### 비밀번호 가져오기

ECR 로그인 비밀번호를 얻으려면

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

{% hint style="success" %}
리전을 변경할 수 있습니다(예: us-east-1, us-west-1 등).
{% endhint %}

#### 자세한 정보는 [**AWS 문서**](https://docs.aws.amazon.com/cli/latest/reference/ecr/get-login-password.html)[**문서**](https://docs.aws.amazon.com/cli/latest/reference/ecr/get-login-password.html)

### 앱을 Edgegap에 추가하세요

#### API 예시

{% hint style="info" %}
사용자 이름은 항상 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>",
    [...]
}
```

#### 대시보드에서

우리 대시보드에서, **프라이빗 레지스트리 토큰** 가 될 것입니다 **ecr 로그인 비밀번호**

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