CodePipeline失败,显示“操作失败,因为找不到工件或Amazon S3存储桶。”

问题描述 投票:0回答:1

我具有以下管道定义:

  Pipeline:
    Type: 'AWS::CodePipeline::Pipeline'
    Properties:
       Name: !Ref AppName
       RoleArn: {"Fn::GetAtt" : ["PipelineServiceRole", "Arn"] }
       ArtifactStore:
          Type: S3
          Location: !Ref ArtifactBucket
       Stages: 
        - 
          Name: Source
          Actions: 
            - 
              Name: SourceAction
              ActionTypeId: 
                Category: Source
                Owner: AWS
                Version: 1
                Provider: S3
              OutputArtifacts: 
                - Name: "PipelineArtifact"
              Configuration: 
                S3Bucket: !Ref ArtifactBucket
                S3ObjectKey: !Ref ArtifactName
                PollForSourceChanges: true
              RunOrder: 1
        - 
          Name: Deploy
          Actions: 
            - 
              Name: DeployAction
              ActionTypeId: 
                Category: Deploy
                Owner: AWS
                Version: 1
                Provider: ElasticBeanstalk
              InputArtifacts: 
                - Name: "PipelineArtifact"
              Configuration:
                ApplicationName: !Ref EbApplication
                EnvironmentName: !Ref EbEnvironment

源阶段成功完成,但是在部署阶段出现此错误:

Error Message

我已经检查过工件在S3中的预期位置,并且PipelineServiceRole具有完全许可权(字面上是*/*)。

什么可能导致此错误?

amazon-cloudformation aws-codepipeline
1个回答
1
投票

对于Provider: ElasticBeanstalkS3ObjectKey必须指向.zip文件。

(不,.jar无效)

© www.soinside.com 2019 - 2024. All rights reserved.