amazon-web-services – Command Execution Error During ECR Login

amazon-ecramazon-web-services

I am getting error in PRE_BUILD section of Code Pipeline while deploying ECS. While executing commmand for ecr login, i am getting exit status with error code 255. please see below image.

Command : - $(aws ecr get-login --no-include-email --region us-east-1)

enter image description here

Best Answer

Have you got aws and docker commands available in the environment?

Insert a line - set -x just above the ecr get-login line - hopefully it will display the actual commands executed.

Related Topic