When I have an AWS lambda finish, I want to trigger another lambda to run. The first lambda lets call X, is full of asynch code and I would rather not mess with that. I thought I could use cloudwatch to say when X is done call lambda Y. But I cannot find out how to do that.
Can someone help me figure out how to run 1 lambda when another lambda finishes? thank you very much
Edit
It has been suggested that I wrap all the asynch calls and use an SDK, it isnt feasible to re-write this code to use a new sdk. What I am looking for is a way to monitor when a lambda is done and then call another lambda. More of an observer pattern instead of a notifier pattern.