AWS CloudFormation
User Guide (API Version 2010-05-15)

AWS Elastic Beanstalk Application MaxCountRule

The MaxCountRule property type specifies a lifecycle rule that deletes the oldest application version when the maximum count is exceeded for an AWS Elastic Beanstalk application.

MaxCountRule is a property of the ApplicationVersionLifecycleConfig property type.


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


{ "DeleteSourceFromS3" : Boolean, "Enabled" : Boolean, "MaxCount" : Integer }


DeleteSourceFromS3: Boolean Enabled: Boolean MaxCount: Integer



Set to true to delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.

Required: No

Type: Boolean

Update requires: No interruption


Specify true to apply the rule, or false to disable it.

Required: No

Type: Boolean

Update requires: No interruption


Specify the maximum number of application versions to retain.

Required: No

Type: Integer

Update requires: No interruption

On this page: