-
Notifications
You must be signed in to change notification settings - Fork 45
Add clean up old lambda's example #12
Copy link
Copy link
Open
Description
This will clean up older versions of functions. See https://www.npmjs.com/package/serverless-prune-plugin for more details
service: using-prune-plugin-example
plugins:
- serverless-prune-plugin
custom:
prune:
automatic: ${self:custom.lambda.pruneStage}
number: 5
lambda:
pruneStage: ${self:custom.lambda.versioning.${self:provider.stage}, 'false'}
versioning:
dev: false
staging: true
prod: true
provider:
name: aws
stage: ${opt:stage, 'prod'}
runtime: nodejs8.10
versionFunctions: ${self:custom.lambda.pruneStage}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels