简体   繁体   中英

Trigger an AWS lambda function by a 3rd party webhook, transform the event request body and POST the transformed body to my API

We use a third party app that sends event-driven webhook requests to trigger our ERP system. We have set an ERP endpoint to receive the request but due to ERP system complexibility, we must receive the request body to a predefined format. So, somehow we need to transform the webhook body and send it to our ERP API in the desired format. I am thinking of using AWS lambda.

Can anyone give me some guidelines how to trigger the AWS lambda function receiving the webhook, then transform its content to the desired format and, finally, POST the right structure to our ERP API?

You would need to create an AWS API Gateway to receive the webhook request. You would configure the API Gateway to pass the request to an AWS Lambda function. Inside the Lambda function you would write code to parse the request, convert it into the desired format, and then perform a POST request to your ERP system.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM