Skip to content

Commit

Permalink
Merge pull request #333 from daaru00/master
Browse files Browse the repository at this point in the history
Add IAM Role generation support for resource "startExecution.sync:2"
  • Loading branch information
horike37 authored May 10, 2020
2 parents 9ba2fe5 + 00e4880 commit 205d869
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/deploy/stepFunctions/compileIamRole.js
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ function getIamPermissions(taskStates) {

case 'arn:aws:states:::states:startExecution':
case 'arn:aws:states:::states:startExecution.sync':
case 'arn:aws:states:::states:startExecution.sync:2':
case 'arn:aws:states:::states:startExecution.waitForTaskToken':
return getStepFunctionsPermissions(state);

Expand Down
9 changes: 9 additions & 0 deletions lib/deploy/stepFunctions/compileIamRole.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,15 @@ describe('#compileIamRole', () => {
Next: 'C',
},
C: {
Type: 'Task',
Resource: 'arn:aws:states:::states:startExecution.sync:2',
Parameters: {
StateMachineArn: stateMachineArn,
Input: {},
},
Next: 'D',
},
D: {
Type: 'Task',
Resource: 'arn:aws:states:::states:startExecution.waitForTaskToken',
Parameters: {
Expand Down

0 comments on commit 205d869

Please sign in to comment.