Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I got some AWS CodeBuild Error. I have no clue to solve it

danke schoen in advance

I'm newvie in AWS, especially I touched first AWS CodeBuild, CodeCommit... today.

and I got this Client Error in PROVISIONING phase

Unable to pull customer's container image. ErrorCode: 404 ~~~~

well, I guess I've set IAM Role properly, and of course I uploaded registry with my source(it's angular2 project)

I tried a lot of IAM role patterns (especially ec2 container service relevant roles...), and I tried building sources in AWS-based(recommaned) images and me-generated docker images(that's my goal)

but it failed all the way.

what do you think I did overlooked? what shoud I do?

like image 244
Jason Son Avatar asked Jul 13 '17 11:07

Jason Son


1 Answers

Make sure you include "codebuild.amazonaws.com" as a Principal in your ECR permissions.

https://docs.aws.amazon.com/codebuild/latest/userguide/sample-ecr.html

like image 180
zyrahjane Avatar answered Sep 20 '22 17:09

zyrahjane