Add a lifecycle rule for AWS
Learn how to add a lifecyle or time-to-live (TTL) rule in the staging bucket.
To add a rule:
- In the AWS Console Home page, select S3.
- In the Buckets page, select the bucket for which you want to create a lifecycle rule.
- Select Management.
- Select Create lifecycle rule.
- In the Create lifecycle rule page, provide the rule name and data retention period.
- Lifecycle rule name: Enter the rule name.
- 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.
- Lifecycle rule actions: Select Expire current versions of objects.
- Days after object creation: Enter the number of days for which you want to retain data.
- Select Create rule.