We have a web app that is powered by an API made up of AWS Lambda functions. For the API, we have three environments (prod, staging, and demo). We were developing the functions using serverless-offline and the functions look like this (there are 84 functions in total, 28 functions in each env.):
Production
- api-prod-function-1
- api-prod-function-2
- api-prod-function-3
- etc...
Staging
- api-staging-function-1
- api-staging-function-2
- api-staging-function-3
- etc...
Demo
- api-demo-function-1
- api-demo-function-2
- api-demo-function-3
- etc...
According to the environment, the functions are connected to different DBs and different ENVs of the services that we use (i.e - Auth0 sandbox and live, Mailgun sandbox and live, etc.)
The problem is that the functions have exceeded the max code storage limit of 75GB. We used this script to clean up the old versions, but it seems like there are no older versions left to delete.
So my questions are:
- Is it possible to increase this storage limit?
- Basically, the whole API is built on lambda functions and each endpoint calls its own lambda function. Is this a good use case of Lambda?
Packages used:
- analytics-node
- auth0
- aws-sdk
- eversign
- formidable
- jsonwebtoken
- knex
- lambda-multipart-parser
- lambda-slack-router
- middy
- moment
- nodemailer
- nodemailer-mailgun-transport
- objection
- pg
- raven
- request
- request-promise-native
- serverless-sentry
- serverless-sentry-lib
- sha1
- slack-notify
- uuid
- validator
FYI: The person who built all this in the first place has left the company, and I'm the one who has to look after it until we find a suitable person. I have a little experience in AWS so any advice would be a big help.
Thanks in advance.