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?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by