Home > Back-end >  Invoke lambda function using aurora DB
Invoke lambda function using aurora DB

Time:12-14

The project I'm working on requires creating an DB aurora (PostgreSQL) that will send request to a lambda function (After every insert to X table) and the lambda function invoke a step function.

Aurora > Lambda > Step Function > Lambda

So the question : How can I invoke (and sent data) to my lambda function and after that invoke the step function in every insert to my X table? (I am open to any solutions)

I'm using asp.net and C# and i want to use EF with the step function to do "Select Data".

CodePudding user response:

So the question : How can I invoke (and sent data) to my lambda function

Follow this documentation to trigger a Lambda function from Aurora. It shows examples of sending payload data from Aurora to the Lambda function.

and after that invoke the step function in every insert to my X table?

Just use the AWS SDK in the Lambda function to call StartExecution on your Step Function. In C#, that would be this method.

  • Related