More Info:

Your Amazon S3 buckets should have lifecycle configuration enabled for security and cost optimization purposes.

Risk Level

Low

Address

Operational Maturity, Security

Compliance Standards

SOC2, PCIDSS, AWSWAF

Triage and Remediation

Remediation

Sure, here are the step by step instructions to remediate this issue in AWS:

  1. Log in to your AWS Management Console.
  2. Navigate to the S3 Dashboard.
  3. Select the S3 bucket that you want to remediate.
  4. Click on the “Management” tab.
  5. Click on “Lifecycle” in the left-hand menu.
  6. Click on the “Add lifecycle rule” button.
  7. In the “Name and scope” section, give a name to the rule and select the prefix or tag that you want to apply the rule to.
  8. In the “Transitions” section, select the transition actions that you want to apply to the objects in the bucket. For example, you can choose to move objects to Glacier storage class after a certain number of days.
  9. In the “Expiration” section, set the expiration action for the objects in the bucket. For example, you can choose to delete objects after a certain number of days.
  10. Click on “Review” to review your configuration.
  11. Click on “Create and activate rule” to create the lifecycle rule and activate it for the selected bucket.

Once you complete these steps, the lifecycle configuration will be enabled for the S3 bucket, which will help you to manage the lifecycle of the objects in the bucket automatically.

Additional Reading: