File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,9 @@ module.exports = {
121121
122122 const stateMachineLogicalId = this
123123 . getStateMachineLogicalId ( stateMachineName , stateMachineObj ) ;
124- const scheduleLogicalId = this
125- . getScheduleLogicalId ( stateMachineName , scheduleNumberInFunction ) ;
124+ const scheduleLogicalId = method !== METHOD_SCHEDULER ? this
125+ . getScheduleLogicalId ( stateMachineName , scheduleNumberInFunction ) : this
126+ . getSchedulerScheduleLogicalId ( stateMachineName , scheduleNumberInFunction ) ;
126127 const scheduleIamRoleLogicalId = this
127128 . getScheduleToStepFunctionsIamRoleLogicalId ( stateMachineName ) ;
128129 const scheduleId = this . getScheduleId ( stateMachineName ) ;
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ module.exports = {
6363 . getNormalizedFunctionName ( stateMachineName ) } StepFunctionsEventsRuleSchedule${ scheduleIndex } `;
6464 } ,
6565
66+ getSchedulerScheduleLogicalId ( stateMachineName , scheduleIndex ) {
67+ return `${ this . provider . naming . getNormalizedFunctionName (
68+ stateMachineName
69+ ) } StepFunctionsSchedulerSchedule${ scheduleIndex } `;
70+ } ,
71+
6672 getScheduleToStepFunctionsIamRoleLogicalId ( stateMachineName ) {
6773 return `${ this . provider . naming . getNormalizedFunctionName (
6874 stateMachineName ,
You can’t perform that action at this time.
0 commit comments