Skip to content

Serverless logRetentionInDays provider parameter now supercedes this pluginΒ #10

@chrisgilbert

Description

@chrisgilbert

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions