我正在尝试构建我的测试项目,但每次它都在pre_build中失败。我检查了错误日志,它说:
[容器] 2017/03/26 19:28:21 调用 GetAuthorizationToken 操作时发生错误(AccessDeniedException):用户:arn:aws:sts::074181202020:assumed-role/codebuild-Testing-project-service-role/ AWSCodeBuild 无权执行:ecr:GetAuthorizationToken on resource:*
我已尝试附加以下政策:
- IAMSelfManageServiceSpecificCredentials
- IAM完全访问
- AmazonS3ReadOnlyAccess
- CodeBuildPolicy-Testing-project-1490555003058
- IAM只读访问
- AWSCodeBuildAdminAccess
- IAM用户SSH密钥
- AWSCodeCommitFullAccess
- IAM完全访问
- AmazonS3FullAccess
- 管理员访问
- AWSElasticBeanstalkFullAccess
- AWSCodePipelineFullAccess
- WSCodeBuildAdminAccess
但它仍然给我同样的错误
任何帮助,将不胜感激!谢谢!