Search code examples
amazon-web-servicesaws-lambda

Can I trigger one Lambda function after successful completion of another Lambda function (without using Step Function)?


I have two AWS Lambda functions doing different things and I want to run the second Lambda only after the first one is completed. It's maybe something simple and I'd like to know how I can do that? I'm aware I can use Step Functions but I haven't used it much. Is this achievable without using Step Functions?


Solution

  • The first Lambda function can invoke another Lambda function before it exits. It can simply use a normal invoke() API call to the AWS Lambda service.

    You would probably want to make this an asynchronous call, so that the first function does not wait for the second function to finish.