AWS Elastic Beanstalk is a managed service for deploying your web-based applications. You can use many different development environments with Elastic Beanstalk: Node.js, PHP, Java, Ruby, .NET, and even Docker. Under the hood, AWS Elastic Beanstalk used CloudFormation, EC2, Auto Scaling, and Elastic Load Balancer to manage your web applications.
Elastic Beanstalk will store and maintain different application versions for you. So when you deploy a new version of your application, the old versions are maintained for easy roll-back. However, there is a limit of 500 versions (by default) per region per AWS account. Many Elastic Beanstalk users hit the limit and must delete old versions before new versions can be deployed. This must be done manually, or you must build it into your automated deployment process. Keeping older versions unnecessarily also bears a storage cost because the versions are stored in Amazon S3.
We’re pleased to announce a new action: Delete Elastic Beanstalk Application Versions. This new action will help reduce the number of application versions kept beyond their usefulness.
Similar to deleting old EBS snapshots, Elastic Beanstalk application versions can be deleted based on many matching criteria:
Full pricing for this new action can be found on our pricing page.