AWS ECR

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

You need to have on hand

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

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

You can change to your region (e.g. us-east-1, us-west-1, etc).

More info on AWS Documentation

Add the app to Edgegap

API Example

The username will always be AWS

{
    [...]
    "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

Last updated

Was this helpful?