Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Latest commit

 

History

History
10 lines (8 loc) · 748 Bytes

File metadata and controls

10 lines (8 loc) · 748 Bytes

ECR - Elastic Container Registry

  • Used for for storing private Docker images
  • Access for ECR is controller by IAM. If a service like ECS wants to pull a container, we have to add the correct permissions to the service
  • Authenticate against ECR using CLI:
    • AWS CLI v1 login command: $(aws ecr get-login --no-include-email --region eu-west-1) - the output of the get-login command is executed
    • AWS CLI v2 login command: aws ecr get-login-password --region eu-west-1 | docker login --username AWS --password-stdin 12345.dkr.ecr.eu-west-1.amazonaws.com - uses pipes, the first part of the command will give the login password, the second part of the command will take the login password and do the authentication