From 5dc95b9ec148b716e2b79c7150830f96698213af Mon Sep 17 00:00:00 2001 From: "Akshay Kumar, Dhupam" Date: Mon, 16 Jan 2023 15:11:01 +0100 Subject: [PATCH 1/2] fix: template error while using distributed_map --- lib/deploy/stepFunctions/compileIamRole.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/deploy/stepFunctions/compileIamRole.js b/lib/deploy/stepFunctions/compileIamRole.js index bd6f4077..fcb2fa90 100644 --- a/lib/deploy/stepFunctions/compileIamRole.js +++ b/lib/deploy/stepFunctions/compileIamRole.js @@ -314,6 +314,7 @@ function getStepFunctionsPermissions(state) { let stateMachineArn = state.Mode === 'DISTRIBUTED' ? { 'Fn::Sub': [ `arn:aws:states:\${AWS::Region}:\${AWS::AccountId}:stateMachine:${state.StateMachineName}`, + {}, ], } : null; From 63aa0b94b9131adb1fc4e812d54e8eecc95cae9a Mon Sep 17 00:00:00 2001 From: "Akshay Kumar, Dhupam" Date: Mon, 16 Jan 2023 15:15:47 +0100 Subject: [PATCH 2/2] fix: tests --- lib/deploy/stepFunctions/compileIamRole.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/deploy/stepFunctions/compileIamRole.test.js b/lib/deploy/stepFunctions/compileIamRole.test.js index 0084775f..7c75fb83 100644 --- a/lib/deploy/stepFunctions/compileIamRole.test.js +++ b/lib/deploy/stepFunctions/compileIamRole.test.js @@ -2338,6 +2338,7 @@ describe('#compileIamRole', () => { expect(stepFunctionPermission[0].Resource).to.deep.eq([{ 'Fn::Sub': [ 'arn:aws:states:${AWS::Region}:${AWS::AccountId}:stateMachine:myStateMachine', + {}, ], }, ]);