I have being using AWS API Gateway to invoke my AWS Lambda for a while.
My AWS Lambda consist of NodeJS and Express with Backend MongoDB Altas.
I'm facing "Endpoint request timed out" issue in my API calls from PHP Rest Client. Increased the Lamdba timeout to 4 mins and memory to 200 MB as well.
So after doing some research I found out that the AWS API Gateway has a timeout of 30 secs. So to fix this issue I was trying to call my Lambda POST function using AWS SDK.
So far I'm lost with setup and installing and can't find any relevant examples for calling my Lambda directly to invoke the respective Express Endpoints. Below is an example for api function in AWS Lambda
app.post('/api/v1/getback', (req, res) => { res.send({ ...req.body }); });
Not sure if AWS SDK with Express Lambda either.
Can someone help how can we trigger the AWS Lambda using PHP AWS-SDK ? Or any other help would also be appreciated.
Thank you in advance !