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

Serverless logRetentionInDays provider parameter now supercedes this plugin

Open chrisgilbert opened this issue 3 years ago • 0 comments

When looking for a solution to set log retention for API gateway, I found that the serverless framework provides it's own logRetentionInDays parameter: https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml#general-function-settings

That is used for lambda log groups, in the same way as this plugin.

The provider parameter is also used for API gateway logs, though it doesn't seem to be documented: https://github.com/serverless/serverless/blob/v2/lib/plugins/aws/package/compile/events/apiGateway/lib/stage.js#L113

So there is probably no need for this plugin or serverless-apigateway-log-retention for most use cases.

chrisgilbert avatar Mar 16 '22 17:03 chrisgilbert