Company
Date Published
Author
Yan Cui
Word count
652
Language
English
Hacker News points
None

Summary

AWS Lambda has a soft limit of 75GB for deployment packages, which can be quickly reached by teams that frequently deploy and split their package sizes due to cold start performance requirements. This limit creates waste as older versions of functions are rarely used, but a simple solution is available in the Serverless Application Repository (SAR), allowing users to deploy a "lambda-janitor" function that automatically deletes old versions of their functions, freeing up space and reducing waste. The `lambda-janitor` function can be deployed with custom IAM permissions to list and delete function versions, making it easier for developers to manage their Lambda environment and reduce storage costs.