We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cd8076 commit c7d22baCopy full SHA for c7d22ba
lib/deploy/stepFunctions/compileIamRole.js
@@ -21,12 +21,14 @@ function getTaskStates(states, stateMachineName) {
21
case 'Map': {
22
const mapStates = state.ItemProcessor ? state.ItemProcessor.States : state.Iterator.States;
23
const taskStates = getTaskStates(mapStates, stateMachineName);
24
- if (state.ItemProcessor && state.ItemProcessor.ProcessorConfig.Mode === 'DISTRIBUTED') {
+ if (state.ItemProcessor && state.ItemProcessor.ProcessorConfig
25
+ && state.ItemProcessor.ProcessorConfig.Mode === 'DISTRIBUTED') {
26
taskStates.push({
27
Resource: 'arn:aws:states:::states:startExecution',
28
Mode: 'DISTRIBUTED',
29
StateMachineName: stateMachineName,
30
});
31
+ }
32
if (state.ItemReader) {
33
taskStates.push(state.ItemReader);
34
}
0 commit comments