Package Exports
- shaman-sls-plugin-log-retention
- shaman-sls-plugin-log-retention/add-log-retention.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (shaman-sls-plugin-log-retention) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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