Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot deploy - ERROR: You cannot have more than 500 Application Versions

I get the following error when deploying to EB:

ERROR: You cannot have more than 500 Application Versions. Either remove some Application Versions or request a limit increase.

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?

like image 739
Tal Avatar asked May 04 '15 11:05

Tal


People also ask

How many application version does Elastic Beanstalk allow you to store?

Elastic Beanstalk applies an application's lifecycle policy each time you create a new application version, and deletes up to 100 versions each time the lifecycle policy is applied.

How does AWS Elastic Beanstalk distinguish between version releases?

AWS Elastic Beanstalk uses proven AWS features and services, such as Amazon EC2, Amazon RDS, Elastic Load Balancing, Auto Scaling, Amazon S3, and Amazon SNS, to create an environment that runs your application. The current version of AWS Elastic Beanstalk uses the Amazon Linux AMI or the Windows Server 2019.


1 Answers

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/

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 
like image 78
Rohit Banga Avatar answered Sep 21 '22 16:09

Rohit Banga



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!