Ricardo Peres
Ricardo Peres

Reputation: 14535

Run AWS Lambda Function Multiple Instances

I know about the provisioned instance configuration for lambda functions. Is it possible to run multiple instances of a lambda function on a timer basis? I know generally we use CloudWatch Events for this, just not how to specify multiple instances. To be clear, I want something like: I want 10 instances of my function to run at "2022-02-02 10:10:10".

Upvotes: 0

Views: 2412

Answers (1)

Mark B
Mark B

Reputation: 200562

Some options:

  • Create 10 identical CloudWatch events
  • Create a new Lambda that is triggered by your single CloudWatch event. The new Lambda would invokes your worker Lambda function 10 times asynchronously
  • Create a Step Functions state machine that triggers 10 Lambda invocations, and trigger the step function on a schedule

Upvotes: 1

Related Questions