CloudFormation 能否通过模板创建 PipeLine 手动审批动作?

Can CloudFormation Create a PipeLine Manual Approval Action through Template?

读完这篇https://docs.aws.amazon.com/codepipeline/latest/userguide/approvals-action-add.html

听起来您只能通过 UI 控制台或 CLI 创建手动批准步骤,而不是通过 CloudFormation 模板?

埃德加

实际上,CloudFormation 确实支持这一点。

您只需要为资源ActionTypeId (Pipeline -> Stage -> Action -> ActionTypeId) as Manual and that's it. More info about provider type - here设置Provider。

示例:

DeliveryPipeline:
    Properties:
      ...
      Stages:
        ...
        - Actions:
            - ActionTypeId:
                Category: Approval
                Owner: AWS
                Provider: Manual
                Version: '1'
              Configuration:
                NotificationArn: <<arn>>
              InputArtifacts: []
              Name: TestApproval
              RunOrder: 1
          Name: Development_Approval
          ...
    Type: AWS::CodePipeline::Pipeline