1 Answer
- Newest
- Most votes
- Most comments
1
What event do you want to pass to Lambda when invoked from the scheduled rule? The schedule itself is the event in this case.
Relevant content
- Accepted Answerasked 3 months ago
- asked a year ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
I have my own custom event in lambda as the below. { "fromadd": "developer@gmail.com", "frompass": "adcdefghikj", "mongousers": [ { "dbusername": "admintestuser", "dbpass": "Password321", "email": "admintest@gmail.com" } ] } But I'm unable to pass these since the eventbridge overwrites the events to lambda
First, I am guessing that you want to send the same information in each invocation. In this case I would use environment variables to store these values, or better yet, store the names of parameters in Secretes Manager or SSM.
Second, if you still prefer to send these value in the event, and if you are using scheduled rules (consider moving to EventBridge Scheduler), when you set up the rule, you can choose in the Additional Settings section in the console to send a constant JSON. If you are using the EB Scheduler, when you configure the schedule, you need to specify the payload that will be sent to the function.
Hey, thanks Uri. I chose the Additional Settings section in the EventBridge Scheduler to send a constant JSON and I was able to pass in the json.