Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»AWS»How To Delete Application Versions from AWS Beanstalk

    How To Delete Application Versions from AWS Beanstalk

    RahulBy RahulSeptember 19, 20202 Mins Read

    One of my application is configured for auto deployment with Code Deploy and Elastic Beanstalk on AWS hosting. Today the deployment failed with the error message “Too many application versions, cannot create a new version for application my-app“. See the below screenshot of error message:

    Too many application versions, cannot create a new version for application

    After searching about the issue, I found that Elastic Beanstalk keeps all application version’s deployed in past. So when we deploy a new version it keeps old version and there is a limit of 500 versions (by default) per region per AWS account. To delete the old version follow below steps:

    Delete Beanstalk Application Versions

    1. Login to AWS account and Open the Elastic Beanstalk console
    2. Choose Applications in navigation pane, and then select your application name from the list

      Select application versions in beanstalk

    3. In the navigation pane, find your application’s name and choose Application versions. Select one or more application versions that you want to delete.

      Choose Actions, then choose Delete.

      select application verion's to delete on beanstalk

    4. Delete application versions dialog on the Application Versions page of the Elastic Beanstalk console

      delete beanstalk application version's

      Then click Delete button to delete all versions.

      (Optional) You can clear the check box for Delete versions from Amazon S3 to leave the application source bundle for these application versions in your Amazon Simple Storage Service (Amazon S3) bucket.

    You can also configure to delete Elastic Beanstalk old versions automatically. To do this you need to enable application version lifecycle settings. Which will also applied to the new application versions.

    aws beanstalk codedeploy
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Install Node.js on Windows 10
    Next Article How to Install PHP Composer on Ubuntu 20.04

    Related Posts

    Backup MySQL Databases to Amazon S3 (Shell Script)

    Updated:May 28, 20222 Mins Read

    How to Remove CloudFront Cache

    Updated:April 3, 20212 Mins Read

    Python Script to Create CloudFront Invalidations

    2 Mins Read

    How to Install AWS CLI Tools in Linux

    Updated:May 28, 20222 Mins Read

    How to Clear Cache of Cloudfront Distribution

    Updated:August 14, 20202 Mins Read

    How to Install s3cmd in Linux and Manage S3 Buckets

    Updated:September 30, 20215 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • How To Install Docker on Ubuntu 22.04
    • How to Install Bower on Ubuntu 22.04 & 20.04
    • How to run “npm start” through Docker
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.