Skip to content

Commit 205d869

Browse files
authored
Merge pull request #333 from daaru00/master
Add IAM Role generation support for resource "startExecution.sync:2"
2 parents 9ba2fe5 + 00e4880 commit 205d869

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

lib/deploy/stepFunctions/compileIamRole.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ function getIamPermissions(taskStates) {
340340

341341
case 'arn:aws:states:::states:startExecution':
342342
case 'arn:aws:states:::states:startExecution.sync':
343+
case 'arn:aws:states:::states:startExecution.sync:2':
343344
case 'arn:aws:states:::states:startExecution.waitForTaskToken':
344345
return getStepFunctionsPermissions(state);
345346

lib/deploy/stepFunctions/compileIamRole.test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,15 @@ describe('#compileIamRole', () => {
15821582
Next: 'C',
15831583
},
15841584
C: {
1585+
Type: 'Task',
1586+
Resource: 'arn:aws:states:::states:startExecution.sync:2',
1587+
Parameters: {
1588+
StateMachineArn: stateMachineArn,
1589+
Input: {},
1590+
},
1591+
Next: 'D',
1592+
},
1593+
D: {
15851594
Type: 'Task',
15861595
Resource: 'arn:aws:states:::states:startExecution.waitForTaskToken',
15871596
Parameters: {

0 commit comments

Comments
 (0)