AWS::ElasticBeanstalk::Application ApplicationVersionLifecycleConfig - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China.

AWS::ElasticBeanstalk::Application ApplicationVersionLifecycleConfig

The application version lifecycle settings for an application. Defines the rules that Elastic Beanstalk applies to an application's versions in order to avoid hitting the per-region limit for application versions.

When Elastic Beanstalk deletes an application version from its database, you can no longer deploy that version to an environment. The source bundle remains in S3 unless you configure the rule to delete it.

ApplicationVersionLifecycleConfig is a property of the ApplicationResourceLifecycleConfig property type.


To declare this entity in your Amazon CloudFormation template, use the following syntax:



Specify a max age rule to restrict the length of time that application versions are retained for an application.

Required: No

Type: MaxAgeRule

Update requires: No interruption


Specify a max count rule to restrict the number of application versions that are retained for an application.

Required: No

Type: MaxCountRule

Update requires: No interruption