My CloudFormation template contains the following resource definition:
MyBuildResource:
Type: AWS::CodeBuild::Project
Properties:
Name: !Sub ${AWS::StackName}-my-build-resource
ServiceRole: !Ref MyServiceRole
Artifacts:
Type: CODEPIPELINE
Source:
Type: CODEPIPELINE
BuildSpec: subtemplate.yaml
Environment:
ComputeType: BUILD_GENERAL1_SMALL
Image: aws/codebuild/python:2.7.12
Type: LINUX_CONTAINER
EnvironmentVariables:
- Name: FOO
Value: 42
I get the error message "Unable to pull customer's container image. ErrorCode: 404, Reason: pull access denied for aws/codebuild/python, repository does not exist or may require 'docker login'". This doesn't make sense to me as the images appears to be available. Is something else wrong in the resource definition?