Skip to content

Commit

Permalink
build: add serverless-prune-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsier committed May 22, 2020
1 parent 442c28d commit 15ba7df
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
15 changes: 15 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,7 @@
"serverless-dotenv-plugin": "^2.1.1",
"serverless-plugin-aws-alerts": "^1.2.4"
},
"devDependencies": {}
"devDependencies": {
"serverless-prune-plugin": "^1.4.3"
}
}
4 changes: 4 additions & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ package:
plugins:
- serverless-dotenv-plugin
- serverless-plugin-aws-alerts
- serverless-prune-plugin

custom:
topicName: ${self:service}-${self:provider.stage}-events
Expand All @@ -58,6 +59,9 @@ custom:
notifications:
- protocol: email
endpoint: ${ssm:/${self:provider.stage}/${self:service}/sns/email~true}
prune:
automatic: true
number: 3

functions:
migrate:
Expand Down

0 comments on commit 15ba7df

Please sign in to comment.