How to call a lambda function from another lambda function in AWS?

If you want to orchestrate multiple lambda functions in your application, the best and recommended way is to use AWS Step Function.

But if you just want to execute a lambda function from another lambda function, you can simply call the target lambda function from the source lambda function using AWS SDK. Below is an example in Python boto3 SDK.

Note: Your source lambda function IAM role should have access to invoke (lambda:InvokeFunction) the target lambda function.

Leave a Reply