diff --git a/lib/event_sources.json.example b/lib/event_sources.json.example index 1b2d7936..69db547d 100644 --- a/lib/event_sources.json.example +++ b/lib/event_sources.json.example @@ -11,7 +11,12 @@ { "ScheduleName": "node-lambda-test-schedule", "ScheduleState": "ENABLED", - "ScheduleExpression": "rate(1 hour)" + "ScheduleExpression": "rate(1 hour)", + "Input": + { + "key": "value", + "key2": "value" + } } ] } diff --git a/lib/schedule_events.js b/lib/schedule_events.js index 1c6ac503..186c92fc 100644 --- a/lib/schedule_events.js +++ b/lib/schedule_events.js @@ -71,7 +71,8 @@ class ScheduleEvents { Rule: params.ScheduleName, Targets: [{ Arn: params.FunctionArn, - Id: this._functionName(params) + Id: this._functionName(params), + Input: JSON.stringify(params.Input) }] } }