11

I'm trying to build an architecture where a single Lambda is triggered on a schedule with multiple parameter sets. So for example if I have three sets of parameters and set schedule to ten minutes I expect to get three executions every ten minutes.

Is there a way to trigger an EventBridge scheduled events with custom properties so I can pass parameters to Lambda? I've noticed the details property in the event schema but couldn't find any reference to its usage with scheduled events.

mbrg
  • 498
  • 10
  • 24

1 Answers1

6
  • To trigger a single lambda function for multiple parameter sets, you can create a separated schedule rule for each parameter set.
  • To provide input to your triggered lambda function you can set "configure input" when you select your lambda function as a target, for example you can provide your input in json format.
Asri Badlah
  • 1,949
  • 1
  • 9
  • 20
  • if you provide your input in JSON format, your input will be static, right? That means you will only provide the same input every time you call the function. But what if you want to send a different value based on the triggered event? – Abdelrahman Shoman Jan 09 '23 at 13:23
  • When I set an Input, it replaces the whole event. What if I want to add input without loosing the default properties that come when Input is not set? – Bernardo SOUSA Jul 07 '23 at 20:35