Accelerate the Value of Data

Add a lifecycle rule for AWS

Learn how to add a lifecyle or time-to-live (TTL) rule in the staging bucket.

A lifecycle or TTL rule allows you to define a timestamp that tells you to retain data for a specified period. For more information, see topic https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3OutpostsLifecycleConsole.html.
Note: You must have the editor role to add a lifecycle rule.

To add a rule:

  1. In the AWS Console Home page, select S3.
  2. In the Buckets page, select the bucket for which you want to create a lifecycle rule.
  3. Select Management.
  4. Select Create lifecycle rule.
  5. In the Create lifecycle rule page, provide the rule name and data retention period.
    1. Lifecycle rule name: Enter the rule name.
    2. Choose a rule scope: Select Limit the scope of this rule using one or more filters to use the rule only for some files and then add a filter in the Prefix field. Select Apply to all objects in the bucket to use the same rule for all files in the bucket and then select the I acknowledge that this rule will apply to all objects in the bucket check box.
    3. Lifecycle rule actions: Select Expire current versions of objects.
    4. Days after object creation: Enter the number of days for which you want to retain data.
  6. Select Create rule.