1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
0
Hello,
Lambda does not provide a way to specify a custom log group target. A log group is automatically created on the first invocation of a Lambda and the log group name will contain the name of the Lambda function.
When log streams are created however, the function version is prefixed onto the name of the log stream. You can use a log stream filter to view log streams for a specific version.
If you want to know which alias invoked a particular version of a Lambda, the alias ARN is included in the Lambda context object as:
context.invoked_function_arn
You can use the print method to write the ARN into the log event.
Best,
Kevin
respondido há 4 anos
Conteúdo relevante
- AWS OFICIALAtualizada há um ano
- AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há 2 anos