部署到 EB 时出现以下错误:
我手动删除了一些版本。
我不希望部署因为这个限制而失败。
Elastic Beanstalk 中有没有办法自动驱逐未使用的版本?
最佳答案
最近在 eb cli (v3.3) 中添加了一项功能来清理旧版本
https://m.reddit.com/r/aws/comments/340ce0/whats_the_thinking_behind_beanstalks_versioning/
从 reddit 链接复制命令
$ 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
关于amazon-elastic-beanstalk - 无法部署 - 错误 : You cannot have more than 500 Application Versions,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/30029090/