title: AWS CodeBuild GetAuthorizationToken failed
body: <p>I'm trying to build my testing project, but everytime It failed in <strong>pre_build</strong>. I check the error log and it says: </p>
  
  <blockquote>
    <p>[Container] 2017/03/26 19:28:21 An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User: arn:aws:sts::074181202020:assumed-role/codebuild-Testing-project-service-role/AWSCodeBuild is not authorized to perform: ecr:GetAuthorizationToken on resource: *</p>
  </blockquote>
  
  <p>I have tried to attach the following policies:</p>
  
  <blockquote>
    <ul>
    <li>IAMSelfManageServiceSpecificCredentials</li>
    <li>IAMFullAccess</li>
    <li>AmazonS3ReadOnlyAccess</li>
    <li>CodeBuildPolicy-Testing-project-1490555003058</li>
    <li>IAMReadOnlyAccess</li>
    <li>AWSCodeBuildAdminAccess</li>
    <li>IAMUserSSHKeys</li>
    <li>AWSCodeCommitFullAccess</li>
    <li>IAMFullAccess</li>
    <li>AmazonS3FullAccess</li>
    <li>AdministratorAccess</li>
    <li>AWSElasticBeanstalkFullAccess</li>
    <li>AWSCodePipelineFullAccess</li>
    <li>WSCodeBuildAdminAccess</li>
    </ul>
  </blockquote>
  
  <p>But it still giving me the same error</p>
  
  <p>Any help would be appreciated! Thanks!</p>