Skip to content

Commit

Permalink
fix: linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
geolffreym committed Nov 5, 2024
1 parent 9d126ca commit 665554e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/deploy/stepFunctions/compileIamRole.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,8 @@ function getEventBridgePermissions(state) {
}

function getEventBridgeSchedulerPermissions(action, state) {
const scheduleGroupName = state.Parameters?.GroupName ?? 'default';
const scheduleTargetRoleArn = state.Parameters?.Target?.RoleArn;
const scheduleGroupName = state.Parameters.GroupName || 'default';
const scheduleTargetRoleArn = state.Parameters.Target.RoleArn;

return [
{
Expand All @@ -576,7 +576,7 @@ function getEventBridgeSchedulerPermissions(action, state) {
},
},
// create schedule needs a target role arn
...(action === "scheduler:CreateSchedule" ? [{
...(action === 'scheduler:CreateSchedule' ? [{
action: 'iam:PassRole',
resource: scheduleTargetRoleArn,
}] : []),
Expand Down Expand Up @@ -749,9 +749,9 @@ function getIamPermissions(taskStates) {
return getEventBridgePermissions(state);

case 'arn:aws:states:::aws-sdk:scheduler:createSchedule':
return getEventBridgeSchedulerPermissions("scheduler:CreateSchedule", state);
return getEventBridgeSchedulerPermissions('scheduler:CreateSchedule', state);
case 'arn:aws:states:::aws-sdk:scheduler:deleteSchedule':
return getEventBridgeSchedulerPermissions("scheduler:DeleteSchedule", state);
return getEventBridgeSchedulerPermissions('scheduler:DeleteSchedule', state);

case 'arn:aws:states:::s3:getObject':
case 'arn:aws:states:::aws-sdk:s3:getObject':
Expand Down

0 comments on commit 665554e

Please sign in to comment.