Skip to content

Commit fcf2b3c

Browse files
authored
Merge pull request #550 from akshaydk/fix_template_error
fix: template error while using distributed_map
2 parents 1c0b347 + 63aa0b9 commit fcf2b3c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/deploy/stepFunctions/compileIamRole.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ function getStepFunctionsPermissions(state) {
314314
let stateMachineArn = state.Mode === 'DISTRIBUTED' ? {
315315
'Fn::Sub': [
316316
`arn:aws:states:\${AWS::Region}:\${AWS::AccountId}:stateMachine:${state.StateMachineName}`,
317+
{},
317318
],
318319
} : null;
319320

lib/deploy/stepFunctions/compileIamRole.test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2338,6 +2338,7 @@ describe('#compileIamRole', () => {
23382338
expect(stepFunctionPermission[0].Resource).to.deep.eq([{
23392339
'Fn::Sub': [
23402340
'arn:aws:states:${AWS::Region}:${AWS::AccountId}:stateMachine:myStateMachine',
2341+
{},
23412342
],
23422343
},
23432344
]);

0 commit comments

Comments
 (0)