Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services AWS代码生成下载\u源失败_Amazon Web Services_Amazon S3_Continuous Deployment_Aws Codepipeline_Aws Codebuild - Fatal编程技术网

Amazon web services AWS代码生成下载\u源失败

Amazon web services AWS代码生成下载\u源失败,amazon-web-services,amazon-s3,continuous-deployment,aws-codepipeline,aws-codebuild,Amazon Web Services,Amazon S3,Continuous Deployment,Aws Codepipeline,Aws Codebuild,我使用AWS代码管道执行部署,我仅使用代码构建来执行部署,但当我将其更改为S3源代码时,部署总是失败,并显示错误消息:- 等待下载\u源代码 正如所指出的,我的代码构建项目是从代码管道创建的。出于绝望,我还将其完全访问我的S3。但还是无济于事 我的CodeBuild项目服务角色策略如下:- { "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0",

我使用AWS代码管道执行部署,我仅使用代码构建来执行部署,但当我将其更改为S3源代码时,部署总是失败,并显示错误消息:-
等待下载\u源代码

正如所指出的,我的代码构建项目是从代码管道创建的。出于绝望,我还将其完全访问我的S3。但还是无济于事

我的CodeBuild项目服务角色策略如下:-

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "logs:CreateLogStream",
                "s3:*",
                "logs:PutLogEvents"
            ],
            "Resource": [
                "arn:aws:s3:::codepipeline-ap-southeast-1-625xxxxxxx/*",
                "arn:aws:s3:::codepipeline-ap-southeast-1-625xxxxxxx/octen_frontend_prod/SourceArti/*",
                "arn:aws:logs:ap-southeast-1:57313xxxxxxx:log-group:/aws/codebuild/MyApp",
                "arn:aws:logs:ap-southeast-1:57313xxxxxxx:log-group:/aws/codebuild/MyApp:*"
            ]
        },
        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": [
                "s3:PutAccountPublicAccessBlock",
                "s3:GetAccountPublicAccessBlock",
                "s3:ListAllMyBuckets",
                "s3:*",
                "s3:ListJobs",
                "s3:CreateJob",
                "s3:HeadBucket"
            ],
            "Resource": "*"
        },
        {
            "Sid": "VisualEditor2",
            "Effect": "Allow",
            "Action": "logs:CreateLogGroup",
            "Resource": [
                "arn:aws:logs:ap-southeast-1:5731xxxxxxxx:log-group:/aws/codebuild/MyApp",
                "arn:aws:logs:ap-southeast-1:5731xxxxxxxx:log-group:/aws/codebuild/MyApp:*"
            ]
        }
    ]
}

好的。。所以CodeBuild只接受
zip
格式,而我提供的是
tar
工件 事实上,CodeBuild的详细信息页面下的阶段详细信息部分实际上提供了错误原因
CLIENT\u错误:zip:不是主源的有效zip文件
。我怎么会错过这让我想知道…

好吧。。所以CodeBuild只接受
zip
格式,而我提供的是
tar
工件 事实上,CodeBuild的详细信息页面下的阶段详细信息部分实际上提供了错误原因
CLIENT\u错误:zip:不是主源的有效zip文件
。我怎么会错过这让我想知道