gpt4 book ai didi

aws-cloudformation - CodePipeline - 遇到不支持的属性配置

转载 作者:行者123 更新时间:2023-12-03 07:23:17 28 4
gpt4 key购买 nike

通过 SLS 部署此 CloudFormation 模板时,我收到一条神秘的错误消息,但没有来自 CloudFormation Events 的更多信息:

  FrontendPipeline:
Type: 'AWS::CodePipeline::Pipeline'
Properties:
Name: FrontendPipeline-${opt:stage, 'dev'}
RoleArn: !GetAtt FrontendCodePipeLineRole.Arn
ArtifactStore:
Location: !Ref FrontendPipelineBucket
Type: S3
Stages:
- Name: FrontendSource
Actions:
- Name: FrontendSourceAction
ActionTypeId:
Category: Source
Owner: AWS
Provider: CodeCommit
Version: 1
Configuration:
BranchName: "dev"
OutputArtifactFormat: CODEBUILD_CLONE_REF
RepositoryName: !GetAtt RepoFrontend.Name
OutputArtifacts:
- name: Frontend-${opt:stage, 'dev'}
- Name: Build
Actions:
- Name: FrontendBuildAction
ActionTypeId:
Category: Build
Owner: AWS
Provider: CodeBuild
Version: 1
InputArtifacts:
- Name: FrontendSource
OutputArtifacts:
- Name: FrontendBuild
Configuration:
ProjectName: !Ref FrontendCodeBuild

错误是:

Serverless Error ----------------------------------------

An error occurred: CodePipeline - Encountered unsupported property configuration.

哪个属性不受支持?

最佳答案

我发现您的模板存在一些潜在问题:

  • 您在第一阶段使用configuration,而不是像第二阶段那样使用Configuration
  • 您在第一阶段使用 outputArtifacts,而不是像第二阶段那样使用 OutputArtifacts

关于aws-cloudformation - CodePipeline - 遇到不支持的属性配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68602298/

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