I would like to schedule an aws lambda function to execute every 5 minutes. I want to have 100 invocations of the lambda function (concurrently) but each invocation will pass a different parameter.
Example: consider the below lambda function which takes a number as an input.
def lambda_handler(event, context):
number = event['number']
# some logic
Every five minutes, I want this function to be called with lets say these numbers [1, 5, 6, 7, 8, 19, 20, ...]. The list can contain 1000 elements.
I have looked into cron expressions in scheduled CloudWatch events but that works for scheduling the execution every 5 minutes, how do i pass these 1000 elements to 1000 different invocations of the lambda function? Do I need to integrate some other AWS feature to achieve this?