Skip to content

Commit

Permalink
Disable Lambda versions
Browse files Browse the repository at this point in the history
Previously deploys functions won't be removed by Serverless or AWS. It
just piles up. For Lambda@Edge it's necessary, but the image scaler
always uses the latest deployed version.

When you don't want to disable versions use your own copy of
serverless.example.yml.
  • Loading branch information
martijngastkemper committed Sep 27, 2023
1 parent a9c4b61 commit 17bc836
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ provider:
iam:
role: ${env:SERVERLESS_ROLE}
runtime: nodejs16.x
versionFunctions: false
deploymentBucket:
name: ${env:DEPLOYMENT_BUCKET}
environment:
Expand Down

0 comments on commit 17bc836

Please sign in to comment.