HI,
Currently I’m using below syntax for declaring several events for the same lambda function:
functions:
myLambda:
handler: lambda_function.lambda_handler
events:
- cloudwatchLog: “/aws/lambda/my-api-{opt:stage}--ping"
- cloudwatchLog: "/aws/lambda/my-api-{opt:stage}-session-auth”
- cloudwatchLog: “/aws/lambda/my-api-{opt:stage}-session-close"
- cloudwatchLog: "/aws/lambda/my-api-{opt:stage}-get-account”
- cloudwatchLog: “/aws/lambda/my-api-${opt:stage}-create-account”
I wonder if there is a simpler syntax like:
events:
- cloudwatchLog: “/aws/lambda/my-api-${opt:stage}-*”
I tried to search in documentation and forums, but didn’t find anything that would work.
Thanks