S3 general purpose buckets should have a lifecycle configuration

This page is not yet available in Spanish. We are working on its translation.
If you have any questions or feedback about our current translation project, feel free to reach out to us!

Description

This check verifies if an Amazon S3 general-purpose bucket has at least one active Lifecycle configuration in place. The check will fail if the bucket has no Lifecycle configurations, or if all Lifecycle configurations are disabled.

Implementing a lifecycle configuration for your S3 bucket allows you to define specific actions for objects throughout their lifecycle. For instance, you can set rules to move objects to a different storage class, archive them, or remove them after a certain period.

Remediation

For guidance on configuring lifecycle policies, refer to the Setting lifecycle configuration on a bucket and Managing your storage lifecycle sections of the Amazon S3 User Guide.