Skip to content

Small application to fix CodeStorageExceededException

License

Notifications You must be signed in to change notification settings

Nyholm/clean-aws-lambda-code-storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clean AWS Lambda code storage

If you have too many versions stored of your Lambda function. You will get the following error:

Code storage limit exceeded. (Service: AWSLambdaInternal; Status Code: 400; Error Code: CodeStorageExceededException;)

This means you need to remove some of these old versions to be able to deploy a new one.

This is a small application that will help you remove old versions of your functions. It is meant to be deployed once and then you forget about it.

Use

git clone https://github.com/Nyholm/clean-aws-lambda-code-storage.git
cd clean-aws-lambda-code-storage
yarn install
composer update
# Modify regions in serverless.yml
./node_modules/.bin/serverless deploy

Test it locally

AWS_PROFILE=acme ./vendor/bin/bref local app

Additional notes

This repository fills the same purpose as epsagon/clear-lambda-storage, but is written in PHP.

About

Small application to fix CodeStorageExceededException

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages