meyay
(Metin Y.)
January 6, 2022, 6:10pm
43
kmprograms:
[Container] 2022/01/06 08:07:03 Phase context status code: COMMAND_EXECUTION_ERROR Message: Error while executing command: aws configure. Reason: exit status 255
What is aws configure
supposed to do? It seem to exist with status 255, which makes your pipeline fail.
Unrelated note: you might want to enable caching for the ~/.m2 folder of your pipeline to preven all dependencies to be pulled on every build.
Generaly the post is off-topic, as it is a problem within build specs of a AWS Code Build job.
mck1990
(Mck1990)
January 14, 2022, 3:40pm
44
Has anyone solved this problem on a Windows OS? I tried all the suggestions but none work and the ecr-credentials-helper doesn’t work for me as it’s not Win OS.
nachokhan
(Ignacio R)
January 28, 2022, 4:04pm
45
Check that you ECR repository’s region is the same from the allowed user’s region. That was my case.
Hello spotit3156,
Thanks for the help. This --no-include-email has saved my life.
stephennuig
(Stephen Smith)
December 11, 2024, 5:17pm
47
I had this issue and solved it by ensuring that sudo was put before docker during login.
aws ecr get-login-password --region <your-region>| sudo docker login --username AWS --password-stdin <userID>.dkr.ecr.<your-region>.amazonaws.com
osamwelian
(Samuel Ian)
December 12, 2024, 11:07am
48
You are a life saver. Just missed sudo. Just reminded me that the push command I copied from aws doesnt know that I have to run all my docker commands as sudo.
1 Like