Posted On: Nov 23, 2021

You can now set Amazon S3 Lifecycle rules to limit the number of versions of an object to retain to achieve greater storage savings, and to choose objects to move to other storage classes based on size to optimize your lifecycle transitions. S3 Lifecycle helps you optimize your storage costs by transitioning or expiring your objects as they get older or are replaced by newer versions. You can use these Lifecycle configurations for your whole bucket, or for a subset of your objects by filtering by prefixes, object tags, or object size.

You can now use finer-grained controls to manage your S3 Lifecycle rules with actions based on the number of noncurrent versions and filters based on object size. For example, you can optimize your costs by transitioning only large media files to storage classes such as S3 Glacier or S3 Glacier Deep Archive. Additionally, you can save costs by deleting old (noncurrent) versions of an object after 5 days and when there are at least 2 newer versions of the object. This allows you to have additional versions of your objects as you need, but saves you cost by transitioning or removing them after a period of time.

New S3 Lifecycle rules with actions based on the number of noncurrent versions and filters based on object size are available in all AWS Regions, including the AWS GovCloud (US) Regions. You can get started with new actions and filters in S3 Lifecycle at no additional cost through the S3 console, AWS Command Line Interface (CLI), the Application Programming Interface (API), and the AWS Software Development Kit (SDK) client. For transition and storage pricing, please visit the Amazon S3 pricing page.

To learn more about S3 Lifecycle, visit the S3 User Guide.