swift-painter-31084
02/11/2020, 3:53 AMconst apiGateway = ( queueIDObject ) => {
return new awsx.apigateway.API( GATEWAY_NAME, {
routes: [ {
path: ROUTE,
method: 'POST',
// Note wrapping this as a callback function it can have additional attributes set on the lambda
eventHandler: new aws.lambda.CallbackFunction("write-event-to-sqs", {
memorySize: 128,
callback: async ( event, context ) => {
return webhookProcess.fire( event, context, queueIDObject );
},
description: "write events to queue and return 200"
})
} ]
} );
};
Any ideas on how I could get eventHandler
logs written to a named log group?