Skip to content

feat(iam): generate IAM policy for aws-sdk:scheduler:deleteSchedule#692

Merged
zirkelc merged 1 commit intoserverless-operations:masterfrom
BANCS-Norway:fix-627-scheduler-delete-schedule
Mar 23, 2026
Merged

feat(iam): generate IAM policy for aws-sdk:scheduler:deleteSchedule#692
zirkelc merged 1 commit intoserverless-operations:masterfrom
BANCS-Norway:fix-627-scheduler-delete-schedule

Conversation

@VirtueMe
Copy link
Copy Markdown
Collaborator

Summary

  • Adds IAM policy generation for arn:aws:states:::aws-sdk:scheduler:deleteSchedule resource (Support EventBridge Scheduler Service deleteSchedule integration #627)
  • Refactors getEventBridgeSchedulerPermissions to accept an action parameter, shared by both createSchedule and deleteSchedule
  • deleteSchedule does not require iam:PassRole (no target role needed), createSchedule still gets it
  • GroupName defaults to 'default' when not specified in Parameters

Test plan

  • New test: deleteSchedule with explicit GroupName generates correct scheduler:DeleteSchedule permission and no iam:PassRole
  • New test: deleteSchedule without GroupName defaults schedule group to default
  • Existing createSchedule test continues to pass with iam:PassRole
  • Full test suite passes (448 tests)
  • Lint clean

Closes #627

🤖 Generated with Claude Code

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 19, 2026

Open in StackBlitz

npm i https://pkg.pr.new/serverless-operations/serverless-step-functions@692

commit: 9bab2a2

@zirkelc zirkelc merged commit d2837e3 into serverless-operations:master Mar 23, 2026
3 checks passed
@VirtueMe VirtueMe deleted the fix-627-scheduler-delete-schedule branch March 23, 2026 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support EventBridge Scheduler Service deleteSchedule integration

2 participants