Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

AWS::ElasticBeanstalk::Application MaxAgeRule

Focus mode
AWS::ElasticBeanstalk::Application MaxAgeRule - AWS CloudFormation
Filter View

A lifecycle rule that deletes application versions after the specified number of days.

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: Boolean Enabled: Boolean MaxAgeInDays: Integer

Properties

DeleteSourceFromS3

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

Enabled

Specify true to apply the rule, or false to 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

On this page

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.