From 73ce84ba2ff0212c5a47628d6e3be09e6acb7ca3 Mon Sep 17 00:00:00 2001 From: Daisuke Date: Sat, 10 May 2025 20:46:53 +0900 Subject: [PATCH] feat: add a manual approval action in AWS CodePipeline --- template-codepipeline.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/template-codepipeline.yaml b/template-codepipeline.yaml index c1dbc22..ec7168c 100644 --- a/template-codepipeline.yaml +++ b/template-codepipeline.yaml @@ -126,6 +126,11 @@ Resources: - codebuild:StartBuild - codebuild:BatchGetBuilds Resource: "*" + # Permissions for manual approval actions in CodePipeline + - Effect: Allow + Action: + - codepipeline:PutApprovalResult + Resource: "*" MyBlogPipeline: Type: AWS::CodePipeline::Pipeline @@ -168,6 +173,17 @@ Resources: InputArtifacts: - Name: SourceArtifact RunOrder: 1 + - Name: Approval + Actions: + - Name: ManualApproval + ActionTypeId: + Category: Approval + Owner: AWS + Provider: Manual + Version: "1" + RunOrder: 1 + Configuration: + CustomData: "Please review the build artifact and approve the deployment." - Name: Deploy Actions: - Name: S3Deploy