serverless-plugin-log-retention
Control the retention of your serverless function's cloudwatch logs.
Usage example
serverless.yml
service: sampleplugins: - serverless-plugin-log-retentionprovider: name: awscustom: logRetentionInDays: 30 # used to set a global value for all functionsfunctions: function1: function2: logRetentionInDays: 10 # set the retention for specific log group