Skip to content

Commit

Permalink
fix(aws-stepfunctions-tasks): missing permission to get build status (#…
Browse files Browse the repository at this point in the history
…10081)

The execution role for the CodeBuild StartBuild task is missing permissions to check the status of the running build. It results in a timeout of the step functions.

Adding `codebuild:BatchGetBuilds` and `codebuild:BatchGetReports` following this [AWS news blog article](https://aws.amazon.com/blogs/aws/new-building-a-continuous-integration-workflow-with-step-functions-and-aws-codebuild/) solves the issue.

Closes #8043

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
DaWyz committed Sep 1, 2020
1 parent 3f80ae6 commit cbdd084
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export class CodeBuildStartBuild extends sfn.TaskStateBase {
actions: [
'codebuild:StartBuild',
'codebuild:StopBuild',
'codebuild:BatchGetBuilds',
'codebuild:BatchGetReports',
],
}),
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,9 @@
{
"Action": [
"codebuild:StartBuild",
"codebuild:StopBuild"
"codebuild:StopBuild",
"codebuild:BatchGetBuilds",
"codebuild:BatchGetReports"
],
"Effect": "Allow",
"Resource": {
Expand Down

0 comments on commit cbdd084

Please sign in to comment.