`
sillycat
  • 浏览: 2487261 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

Amazon Lambda and Version Limit

 
阅读更多
Amazon Lambda and Version Limit

Recently, when I try to use circleCI or my local ENV to deploy the codes to our AWS Lambda account, I get this error response.
CreateNewAccountLambdaFunction - Code storage limit exceeded

Go to the Lambda Page and click on these button
[Qualifiers] —> [Versions]
You can see a lot of versions, I think I never clean up that, so there is a huge list. I can manually do that in the UI.

But here is a plugin which can help me with that.

Install the plugin
> sls plugin install -n serverless-prune-plugin

Keep the latest 20 versions on int, clean up the others
> sls prune -n 20 --stage int


> sls prune -n 20 --stage stage

References:
https://www.npmjs.com/package/serverless-prune-plugin
https://stackoverflow.com/questions/51722526/aws-serverless-code-storage-limit-exceeded
https://github.com/claygregory/serverless-prune-plugin
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics