I have SQS -> triggers a lambda(code that needs to be tested) -> where its workflow -> can trigger other lambdas in multiple API Gateways (already deployed in AWS)
Is there a way I can emulate SQS locally so that I can test the lambda locally while also calling other lambdas that are deployed in AWS?
We already are using serverless-offline, which allows us to test a lambda locally. What we are looking for to test is the following scenario SQS(local)-> lambda (local) -> lambda (on aws account)
the lambda makes calls to other lambda's like this. how can we emulate those locally?
params = {
FunctionName: lambdaName,
InvocationType: 'RequestResponse',
LogType: 'None',
Payload: JSON.stringify(event)
};
}
response = await lambda.invoke(params).promise();
Thanks