serverless-plugin-log-retention icon indicating copy to clipboard operation
serverless-plugin-log-retention copied to clipboard

An optional parameter for non default Lamda Log groups name

Open zavale opened this issue 3 years ago • 0 comments

After CF stack deletion, the log group may be re-created by CW service, since logs are delivered with some delay, after Lambda invocation. It may cause a problem when you try to re0deploy stack - it will fail with an error LogGroup - /aws/lambda/xxxxx already exists.. To solve it, serverless-plugin-log-retention may provide an option, or even create by default LogGroups with the non-default name. In this case, even if CW will recreate LogGroup for Lambda after Lambda removed, it will use the default name, and will not clash with the LogGroup name created during stack re-deployment

zavale avatar Oct 16 '20 21:10 zavale