aws sts get-caller-identity를 사용하여, Account ID 확인
$ aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin "$(aws sts get-caller-identity --query Account --output text).dkr.ecr.ap-northeast-2.amazonaws.com"
혹은
$ aws ecr get-login-password --region ap-northeast-2 | docker login --username AWS --password-stdin {ECR URI}
'AWS' 카테고리의 다른 글
AWS Lambda SingletonFunction (0) | 2021.07.01 |
---|---|
AWS RDS sharding (0) | 2021.07.01 |
Using the Amazon SageMaker Studio Image Build (0) | 2021.05.25 |
AWS SSO (0) | 2021.05.25 |
Comparing Machine Learning Algorithms' Performance using Machine Learning Operations (MLOps) and the AWS Cloud Development Kit (CDK) (0) | 2021.05.25 |