I'm setting environmental variables for the AWS via cli. I installed the aws-cli bundle in zip.
After setting AWS creds I run: eval $(aws ecr get-login-password --region eu-west-2)
from which I'm getting this output I don't understand:
eval: eyJwYXlsb2FkIjoiaXB2b.....: File name too long
Can anyone advise what's happening here ?
Edit:
then
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install
unzip awscli-bundle.zip
./awscli-bundle/install -b ~/bin/aws
export PATH=~/bin:$PATH
export AWS_ACCOUNT_ID=''
export AWS_ACCESS_KEY_ID=''
export AWS_SECRET_ACCESS_KEY=''
eval $(aws ecr get-login-password --region eu-west-2)
export TAG=$GITLAB_BRANCH
export REPO=$AWS_ACCOUNT_ID.dkr.ecr.us-west-1.amazonaws.com
aws-cli version: aws-cli/2.1.19 Python/3.7.3 Linux/5.8.0-38-generic exe/x86_64.ubuntu.20 prompt/off
aws ecr get-login --region eu-west-2 --no-include-email
supposed to work as an alternative which just gives out the "help" output.