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
- Log in to the AWS Console with a user or role that has ECR permissions.
- 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
-
Via AWS CLI:
aws ecr get-authorization-token --region <your-region>This returns a response containing an authorization token and expiration time.