Serverless plugin to use Eventbridge Scheduler to schedule Lambda functions instead of Cloudwatch and Eventbridge Rules
npm install --save-dev serverless-eventbridge-schedule
Or
yarn add -D serverless-eventbridge-schedule
plugins:
- serverless-eventbridge-schedule
functions:
hello:
# ...function definition
events:
- evSchedule:
rate: cron(* * * * ? *)
This will create a new event bridge schedule which will trigger your lambda and move you away from event bridge rules
Todo:- Will write more if someone actually ends up using this
- It's new
- It supports timezones out of the box and I wanna see it finally solve the Daylight Savings problem
- Star and raise issues if you end up using this and want the full document which I promised myself I would write