CodePipeline(AWS)的CodeBuild(AWS)无法正常工作

Vee*_*dke 12 amazon-web-services aws-codepipeline aws-codebuild

我已经使用所有必需的必需选项和有效的IAM角色通过代码管道向导创建了一个代码构建项目。我还添加了IAM角色策略,这对于访问和写入S3存储桶中的数据是必需的。我已经考虑过以下提到的访问S3的策略。

{
"Version": "2012-10-17",
"Statement": [
    {
        "Effect": "Allow",
        "Resource": [
            "arn:aws:logs:aws/codebuild",
            "arn:aws:logs:aws/codebuild:*"
        ],
        "Action": [
            "logs:CreateLogGroup",
            "logs:CreateLogStream",
            "logs:PutLogEvents"
        ]
    },
    {
        "Effect": "Allow",
        "Resource": [
            "arn:aws:s3:::pipeline”,
            "arn:aws:s3::: pipeline/*"
        ],
        "Action": [
            "s3:PutObject",
            "s3:GetObject",
            "s3:GetObjectVersion",
            "s3:GetBucketAcl",
            "s3:GetBucketLocation"
        ]
    }
]
Run Code Online (Sandbox Code Playgroud)

}

一旦启动管道,代码构建就会失败,并且出现以下提到的错误

DOWNLOAD_SOURCE Failed: 
CLIENT_ERROR: symlink /codebuild/output/.../libcrypto.1.0.0.dylib: no such file or directory for primary source and source version arn:aws:s3:::codepipeline-bucketSource/Ap4g3sv.zip
Run Code Online (Sandbox Code Playgroud)

我已经进行了很多研究,浏览了各种AWS文档,但是找不到解决方案。

Vee*_*dke 6

最终,经过大量研究,我发现这仅是一个许可问题。我不得不按以下说明更改政策:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Action": [
                "logs:CreateLogGroup",
                "logs:CreateLogStream",
                "logs:PutLogEvents"
            ],
            "Resource": [
                "*"
            ],
            "Effect": "Allow"
        },
        {
            "Action": [
                "s3:PutObject",
                "s3:GetObject",
                "s3:GetObjectVersion",
                "s3:GetBucketAcl",
                "s3:GetBucketLocation"
            ],
            "Resource": [
                "*"
            ],
            "Effect": "Allow"
        }
    ]
}
Run Code Online (Sandbox Code Playgroud)

添加此修改后,我的代码构建和管道开始工作。