gpt4 book ai didi

amazon-web-services - 遇到不支持的属性 ActionTypeId

转载 作者:行者123 更新时间:2023-12-03 07:43:59 25 4
gpt4 key购买 nike

当我为 codepipeline 创建 cloudformation 堆栈时,它失败,错误消息为“遇到不支持的属性 ActionTypeId”。

我的模板是这样的:

Resources:
CodePipeline:
Type: AWS::CodePipeline::Pipeline
Properties:
ArtifactStore:
Location: !Ref BucketLocation
Type: S3
Name: !Ref Name
RestartExecutionOnUpdate: true
RoleArn: !Ref RoleAnr
DisableInboundStageTransitions:
- Reason: Approve Step
StageName: Build
Stages:
-
Name: !Ref StagesName
Actions:
-
InputArtifacts:
-
Name: CodeCommit
ActionTypeId:
Category: Source
Owner: AWS
Version: 1
Provider: CodeCommit
OutputArtifacts:
-
Name: sourceartifact
Configuration:
BranchName:
!Ref RepositoryBranch
RepositoryName:
!Ref RepositoryName
RunOrder: 1
-
Name: Build
Actions:
-
Name: BuildAction
InputArtifacts:
-
Name: CodeBuild
ActionTypeId:
Category: Build
Owner: AWS
Version: 1
Provider: CodeBuild
OutputArtifacts:
-
Name: sourceartifact
Configuration:
ProjectName:
!Ref ProjectName
RunOrder: 1
-



我不知道问题出在哪里。我已经评论了操作类型,但堆栈仍然失败。

最佳答案

修复 YAML 缩进,以便 ActionTypeId 等操作属性处于同一级别。

关于amazon-web-services - 遇到不支持的属性 ActionTypeId,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57064103/

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