gpt4 book ai didi

aws-cloudformation - CodePipeline 失败并显示 "The action failed because either the artifact or the Amazon S3 bucket could not be found."

转载 作者:行者123 更新时间:2023-12-03 07:35:16 26 4
gpt4 key购买 nike

我有以下管道定义:

  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 具有完全权限(字面意思是 */*)。

什么可能导致此错误?

最佳答案

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

(不,.jar 不起作用)

关于aws-cloudformation - CodePipeline 失败并显示 "The action failed because either the artifact or the Amazon S3 bucket could not be found.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62234560/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com