Ömer Toraman
10/24/2021, 1:44 AMApi
handlers:
const api = new sst.Api(this, "Api", {
routes: {
"POST /todo": {
srcPath: 'src/handlers/apiGateway/todo/',
handler: 'post-todo.handler',
functionName: 'post-todo',
description: 'Creates a new post'
}
},
});
This creates a log group named /aws/lambda/post-todo
, is it possible that I can prefix it?
Something like /aws/lambda/stackName/post-todo
Ömer Toraman
10/24/2021, 1:46 AMthis.getAllFunctions().forEach(func => {
console.log(func.functionName)
})
and this is what I see on the terminal:
${Token[TOKEN.213]}
Slawomir Stec
10/24/2021, 2:03 AMFrank
Frank
/aws/lambda/$FUNCTION_NAME