Skip to content

Commit

Permalink
Make sure to prune old lambda versions in the frontend too
Browse files Browse the repository at this point in the history
  • Loading branch information
aloftus23 committed Jan 3, 2025
1 parent 2baf06c commit 80e2bfc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
11 changes: 9 additions & 2 deletions frontend/package-lock.json

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

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
"serverless-domain-manager": "^7.0",
"serverless-http": "^3.2.0",
"serverless-plugin-ifelse": "^1.0.7",
"serverless-prune-versions": "^1.0.4",
"serverless-webpack": "^5.11.0",
"ts-jest": "^29.1.1",
"typescript": "^4.8.4",
Expand Down
6 changes: 5 additions & 1 deletion frontend/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ custom:
certificateName: ${file(env.yml):${self:provider.stage}.DOMAIN, ''}
stage: ${self:provider.stage}
createRoute53Record: false

prune:
automatic: true
includeLayers: true
number: 3
# Resource policies for GovCloud (Private) vs Non-GovCloud (Regional)
privateResourcePolicy:
- Effect: Deny
Expand Down Expand Up @@ -105,3 +108,4 @@ plugins:
- serverless-better-credentials
- serverless-webpack
- serverless-plugin-ifelse
- serverless-prune-versions

0 comments on commit 80e2bfc

Please sign in to comment.