AWS Elastic Beanstalk Application MaxAgeRule
The
MaxAgeRule property type specifies a lifecycle rule that deletes application versions after
the specified number of days for an AWS Elastic Beanstalk application.
MaxAgeRule is a property of the ApplicationVersionLifecycleConfig property type.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "DeleteSourceFromS3" :Boolean, "Enabled" :Boolean, "MaxAgeInDays" :Integer}
YAML
DeleteSourceFromS3:BooleanEnabled:BooleanMaxAgeInDays:Integer
Properties
DeleteSourceFromS3-
Set to
trueto delete a version's source bundle from Amazon S3 when Elastic Beanstalk deletes the application version.Required: No
Type: Boolean
Update requires: No interruption
Enabled-
Specify
trueto apply the rule, orfalseto disable it.Required: No
Type: Boolean
Update requires: No interruption
MaxAgeInDays-
Specify the number of days to retain an application versions.
Required: No
Type: Integer
Update requires: No interruption
