-
Notifications
You must be signed in to change notification settings - Fork 8
fix: serverless-prune for lambdas #893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 359ff14 The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
✅ Deploy Preview for learncarddocs canceled.
|
|
👋 Hey there! It looks like you modified code, but didn't update the documentation in If this PR introduces new features, changes APIs, or modifies behavior that users or developers need to know about, please consider updating the docs. 🏄 Windsurf TipYou can ask Windsurf to help:
Windsurf will review your changes and suggest appropriate documentation updates based on what was modified. 📚 Documentation Guide
This is an automated reminder. If no docs are needed, feel free to ignore this message. |
❌ Deploy Preview for staging-learncardapp failed. Why did it fail? →
|
|
🥷 Code experts: TaylorBeeston TaylorBeeston has most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame: ✨ Comment |
🔧 Add Serverless Prune Plugin to Lambda Services
Problem
Deployments are failing with the error:
Code storage limit exceeded. (Service: Lambda, Status Code: 400)AWS Lambda has a 75GB storage limit per region, and old function versions have accumulated over time, hitting this limit.
Solution
Added
serverless-prune-pluginto all Serverless services. This plugin automatically removes old Lambda function versions after each deployment, keeping only the most recent versions.Changes
Added plugin to serverless configs:
Added devDependency to package.json:
Configuration
This keeps the 3 most recent function versions and automatically prunes older ones on every deploy.