Skip to content

Commit 30fcb17

Browse files
committed
fix: support IAM role deleteSchedule
1 parent 8cfe564 commit 30fcb17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/deploy/stepFunctions/compileIamRole.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,10 +576,10 @@ function getEventBridgeSchedulerPermissions(action, state) {
576576
},
577577
},
578578
// create schedule needs a target role arn
579-
...(action.includes("CreateSchedule") ? {
579+
...(action === "scheduler:CreateSchedule" ? [{
580580
action: 'iam:PassRole',
581581
resource: scheduleTargetRoleArn,
582-
} : {}),
582+
}] : []),
583583
];
584584
}
585585

0 commit comments

Comments
 (0)