ajmath / serverless-offline-scheduler

MIT License
96 stars 40 forks source link

ADD: return schedule's input if exists #9

Closed ericbear closed 7 years ago

ericbear commented 7 years ago

ajmath, thx for your serverless-offline-scheduler, it is good for development on local.

According to test on AWS, event should be as same as the value of input, the modification is used to simulate the result of AWS, we can use input as parameters for scheduler

module.exports.test = (event, context, callback) => {
  //this event is referred by the value of input
  console.log(JSON.stringify(event, 2, 2))
};