Error running codebuild
Following the install instructions on this github page does not allow the AMI image to build. When it gets to the point where it builds the AMI image on the EC2 instance, if I go into the code build interface the build fails every time and even when i click retry on it with the following message:
BUILD_CONTAINER_UNABLE_TO_PULL_IMAGE: Unable to pull customer's container image. CannotPullContainerError: Error response from daemon: pull access denied for *censored id number here*.dkr.ecr.ca-central-1.amazonaws.com/ami-build-env, repository does not exist or may require 'docker login'
FYI I replaced the id number there in the url as it may be something that should not be shared.
Do you know why this may be happening? I followed every step in the install guide (although some parts were not very descriptive and required some trial to find out what details were needed for deploying the stack for example).
Every time I try to install this and every time i restart from scratch even the same thing keeps happening on the code build step. Should the stack not already have the proper permissions? I see that it created a metric crap ton of permission groups for this, is it possible that they are out of date and need new permission defaults of amazon instances overwritten?
I don't know when the last time is that you used this, but for me it currently does not work and i am unsure why. If you can help me know why or fix the script if it became out of date I will be most grateful :D
The solution is to replace line 521 of the cfn.yaml file:
Image: !Sub '${AWS::AccountId}.dkr.ecr.${AWS::Region}.amazonaws.com/ami-build-env'
with
Image: 'aws/codebuild/standard:3.0'