serverless-plugin-log-retention

2.0.0 • Public • Published

serverless-plugin-log-retention

Control the retention of your serverless function's cloudwatch logs.

Usage example

serverless.yml

service: sample
 
plugins:
  - serverless-plugin-log-retention
 
provider:
  name: aws
 
custom:
  logRetentionInDays: 30 # used to set a global value for all functions
 
functions:
  function1:
  function2:
    logRetentionInDays: 10 # set the retention for specific log group

Dependencies (2)

Dev Dependencies (4)

Package Sidebar

Install

npm i serverless-plugin-log-retention

Weekly Downloads

27,101

Version

2.0.0

License

MIT

Unpacked Size

7.16 kB

Total Files

6

Last publish

Collaborators

  • artificerentertainment
  • serverless-main