Home AWS CLI
Post
Cancel

AWS CLI

login to ECR

1
 aws ecr get-login-password --region us-east-1 --profile mfa | docker login --username AWS --password-stdin 176977192848.dkr.ecr.us-east-1.amazonaws.com

만약 다음 에러를 만난다면, aws cli를 삭제하고 다시 설치해보는 것으로 해결한다.

Error: Cannot perform an interactive login from a non TTY device

Exception ignored in:

1
2
3
4
5
6
# awscli 삭제
sudo rm -rf /usr/local/aws
sudo rm /usr/local/bin/aws
# awscli 설치
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
sudo installer -pkg AWSCLIV2.pkg -target
This post is licensed under CC BY 4.0 by the author.

Trending Tags