diff --git a/packages/@aws-cdk/aws-stepfunctions-tasks/lib/codebuild/start-build.ts b/packages/@aws-cdk/aws-stepfunctions-tasks/lib/codebuild/start-build.ts index f4341a3e7c521..1a361405843ee 100644 --- a/packages/@aws-cdk/aws-stepfunctions-tasks/lib/codebuild/start-build.ts +++ b/packages/@aws-cdk/aws-stepfunctions-tasks/lib/codebuild/start-build.ts @@ -60,6 +60,8 @@ export class CodeBuildStartBuild extends sfn.TaskStateBase { actions: [ 'codebuild:StartBuild', 'codebuild:StopBuild', + 'codebuild:BatchGetBuilds', + 'codebuild:BatchGetReports', ], }), ]; diff --git a/packages/@aws-cdk/aws-stepfunctions-tasks/test/codebuild/integ.start-build.expected.json b/packages/@aws-cdk/aws-stepfunctions-tasks/test/codebuild/integ.start-build.expected.json index 9720f657969e2..a3a245b0ddfd8 100644 --- a/packages/@aws-cdk/aws-stepfunctions-tasks/test/codebuild/integ.start-build.expected.json +++ b/packages/@aws-cdk/aws-stepfunctions-tasks/test/codebuild/integ.start-build.expected.json @@ -191,7 +191,9 @@ { "Action": [ "codebuild:StartBuild", - "codebuild:StopBuild" + "codebuild:StopBuild", + "codebuild:BatchGetBuilds", + "codebuild:BatchGetReports" ], "Effect": "Allow", "Resource": {