Invoke multiple aws lambda functions

tarun kumar Sharma picture tarun kumar Sharma · Oct 29, 2015 · Viewed 7.1k times · Source

How can we invoke multiple AWS Lambda functions one after the other ?For example if an AWS Lambda chain consists of 8 separate lambda functions and each simulate a 1 sec processing event and then invoke the next function in the chain.

Answer

adamkonrad picture adamkonrad · Oct 30, 2015

I wouldn't recommend using direct invoke to launch your functions. Instead you should consider creating an SNS Topic and subscribing your Lambda functions to this topic. Once a message is published to your topic, all functions will fire at the same time. This solution is also easily scalable.

See more information at official documentation Invoking Lambda functions using Amazon SNS notifications