无法部署-错误:您不能拥有超过500个应用程序版本 [英] cannot deploy - ERROR: You cannot have more than 500 Application Versions
问题描述
部署到EB时出现以下错误:
I get the following error when deploying to EB:
错误:您的应用程序版本不能超过500.任何一个 删除一些应用程序版本或请求增加限制.
ERROR: You cannot have more than 500 Application Versions. Either remove some Application Versions or request a limit increase.
我手动去了,并删除了一些版本. 我不想因为这个限制而使部署失败. Elastic Beanstalk中是否有一种方法可以自动逐出未使用的版本?
I went manually and deleted some versions. I don't want deploys to fail because of this limit. Is there a way in Elastic Beanstalk to auto-evict unused versions?
推荐答案
最近在eb cli(v3.3)中添加了一项功能以清理旧版本
A feature was recently added to eb cli (v3.3) to cleanup old versions
https://m.reddit.com/r/aws/comments/340ce0/whats_the_thinking_behind_beanstalks_versioning/
从reddit链接复制命令
Copying command from reddit link
$ eb labs cleanup-versions --help
usage: eb labs cleanup-versions [options...]
Cleans up old application versions.
optional arguments:
--num-to-leave NUM number of versions to leave DEFAULT=10
--older-than DAYS delete only versions older than x days DEFAULT=60
--force don't prompt for confirmation
这篇关于无法部署-错误:您不能拥有超过500个应用程序版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!