0

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

2 Answers 2

1

Code Build Service Role automatically created in Code Pipeline was unable to access ECR, thats why i was getting exit status 255.

Solved the issue by atttaching policy AmazonEC2ContainerRegistryPowerUser to Codebuild role created.

0

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.

1
  • Thanks @122588 i already solved the issue, i will post the answer. Issue occur because code deploy role permission issue.
    – Sreeraju V
    May 23, 2019 at 7:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .