So here how I’m defining my `Api` handlers: ``` ...
# help
ö
So here how I’m defining my
Api
handlers:
Copy code
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
By the way, the function name is really weird. I run this to see it
Copy code
this.getAllFunctions().forEach(func => {
                  console.log(func.functionName)
            })
and this is what I see on the terminal:
Copy code
${Token[TOKEN.213]}
s
f
Thanks @Slawomir Stec!
@Ömer Toraman nope, you can’t prefix the log group. It has to be
/aws/lambda/$FUNCTION_NAME