+ aws ecr get-login-password --region ****
/var/jenkins_home/workspace/build-ecr@tmp/durable-62c78929/script.sh: 2: aws: not found
+ docker login --username AWS --password-stdin ****.dkr.ecr.****.amazonaws.com
Error: Cannot perform an interactive login from a non TTY device
jenkins 서버에 aws cli가 없어서 aws: not found
에러가 발생하였음
젠킨스 서버에 aws cli를 설치해주면 된다
$ sudo apt-get install -y python3-pip
$ pip install --upgrade --user awscli
$ sudo apt-get install -y awscli