Skip to main content

How to integrate Amazon ECR account?

Overview

To use Amazon Elastic Container Registry (ECR), you will need:

  • The AWS ECR API endpoints for your region
  • Authorization token

Step 1: Login to AWS and ensure you have IAM permissions

  1. Log in to the AWS Console with a user or role that has ECR permissions.
  2. Ensure IAM policy attached to that user/role includes at least:
    • ecr:GetAuthorizationToken (to retrieve auth token)
    • ecr:DescribeRepositories, ecr:ListImages,

Step 2: Retrieve Authorization Token

  1. Via AWS CLI:

    aws ecr get-authorization-token --region <your-region>

    This returns a response containing an authorization token and expiration time.