Failed to push my code in AWS EB


I ran into a problem by pushing my ruby on rails code to an AWS ElasticBeansTalk server. For the first time, I was able to initialize EB, commit and press code and tried to start EB-server. Everything was fine, but after a few commits, all of a sudden this raises an exception, as shown below.

remote: error: Unable to create application version: You cannot have more than 500 Application Versions. Either remove some Application Versions or request a limit increase. 

I can not find what to do with it.
Can someone help me solve the problem explicitly?
Thanks in advance.

+6
source share
3 answers

The error code assumes that you have thrown a very large number of builds on the Elastic Beanstalk environment. Try logging into your AWS console and navigating to Elastic Beanstalk , and using the Actions button for your application, select View Application Versions .

Most likely, here you will find 500 different versions of your application. Select as many old ones as you like and do Delete to delete them. Then you can continue.

(Of course, if my guess is correct, a more interesting question is how you managed to download 500 different versions of your application. I don't run Ruby on Rails, so I'm not too familiar with this environment ...)

Good luck

+13
source

Use eb labs cleanup-versions --num-to-leave=some_value to leave the number "some_value" of the latest application versions and eb labs cleanup-versions --help to get a complete list of available commands. Note that eb labs is an experimental branch, and its syntax may differ depending on the version of eb cli .

+1
source

After uninstalling old versions of git applications, aws.push started working again. It would be nice if the version error was returned by git aws.push, as this would save a lot of time.

So, follow these steps to resolve this issue.

  • log in to the console
  • Go to Elastic Beanstalk and select the application and environment.
  • Find the Download and Deploy button under the text โ€œCurrent Versionโ€ and click on it.
  • To deploy a previous version, go to the Application Versions page.
  • Select the last lock and remove the label for this version. 6 Again, try deploying with the new version.
0
source

All Articles