File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -121,8 +121,9 @@ module.exports = {
121
121
122
122
const stateMachineLogicalId = this
123
123
. 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 ) ;
126
127
const scheduleIamRoleLogicalId = this
127
128
. getScheduleToStepFunctionsIamRoleLogicalId ( stateMachineName ) ;
128
129
const scheduleId = this . getScheduleId ( stateMachineName ) ;
Original file line number Diff line number Diff line change @@ -63,6 +63,12 @@ module.exports = {
63
63
. getNormalizedFunctionName ( stateMachineName ) } StepFunctionsEventsRuleSchedule${ scheduleIndex } `;
64
64
} ,
65
65
66
+ getSchedulerScheduleLogicalId ( stateMachineName , scheduleIndex ) {
67
+ return `${ this . provider . naming . getNormalizedFunctionName (
68
+ stateMachineName
69
+ ) } StepFunctionsSchedulerSchedule${ scheduleIndex } `;
70
+ } ,
71
+
66
72
getScheduleToStepFunctionsIamRoleLogicalId ( stateMachineName ) {
67
73
return `${ this . provider . naming . getNormalizedFunctionName (
68
74
stateMachineName ,
You can’t perform that action at this time.
0 commit comments