Lifecycle Settings: Creating and Managing a Rule
    • 04 Oct 2024
    • 3 Minutes to read
    • PDF

    Lifecycle Settings: Creating and Managing a Rule

    • PDF

    Article summary

    The object lifecyle management feature establishes a lifecycle policy with rules to define actions that you want Wasabi to take during the life of an object. This feature replaces the need to manually delete an object after a retention period. In addition, note the following:

    • Lifecycle management policies are evaluated and run once daily at 00:00 UTC.
    • Once a lifecycle management policy is defined, it may take 24-48 hours for it to run.
    • For buckets with versioning enabled and with a large number of objects (for example, over 10 million), lifecycle rule processing may require more time to complete.
    • Lifecycle rules cannot delete objects that are under retention due to Object Lock.

    Creating a Lifecycle Rule

    1. On the Buckets list, clickfor the desired bucket.
    2. Click Settings.
    3. Click the Lifecycle tab. The Lifecycle Policy panel is displayed. In this example, no lifecycle policy is defined yet:

      The lifecycle feature is supported only for new buckets. Create a new bucket to create and apply lifecycle rules.
    4. Click Create New Rule. The Lifecycle Rule Settings panel is displayed.

    5. Enter a name for the Lifecycle rule.
    6. Choose the scope of the rule. You can:
      — Limit the scope of the rule by using filters. Continue with Step 7.
      — Apply the rule to all objects in the bucket. Skip to Step 8.

    7. Filter options are provided when you choose to limit the scope of the rule. You can filter by a name prefix and/or the size of the object. For size, you can enter the minimum and/or maximum size in bytes, kilobytes, megabytes, or gigabytes. 

      For more information about tags, refer to Object Tags.

      After you enter your filter information, continue with Step 8.

    8. Check at least one of the Action options. Follow the on-screen instructions for the selected option(s), as described below in Lifecycle Rule Actions.

    9. Click Create.

    A rule list is displayed. Each rule is shown with its name, status, scope, and action information. For example:

    Lifecycle Rule Actions

    Each rule action is described below.

    Expire current versions of objects

    To expire the current versions of objects, specify when the objects become noncurrent. Either:

    • Enter a value indicating the number of days after object creation, or
    • Select a date in the calendar.

    For versioned buckets, a delete marker is added and the current version of an object is retained as a noncurrent version. For non-versioned buckets, the object is permanently removed at the end of the specified period.

    If you enable this action, you cannot enable the "Delete expired object delete markers."

    Permanently delete noncurrent versions of objects

    To permanently delete previous versions of objects, enter a value indicating the number of days after which objects become noncurrent.

    Optionally, you can enter a value to specify the number of newer versions to retain.

    Delete expired object delete markers

    This action is not supported when filtering by object size.

    This action removes expired object delete markers. An expired object delete marker is removed if all noncurrent versions of an object expire after deleting a versioned object.

    If you enable this action, you cannot enable the "Expire current versions of objects."

    Delete incomplete multipart uploads

    This action is not supported when filtering by object size.

    To delete incomplete multipart uploads, enter a value indicating the number of days after which you want to end the multipart upload initiation and clean up incomplete multipart uploads.

    This action will stop all incomplete multipart uploads and delete the parts associated with the multipart upload.

    Editing a Rule

    You cannot edit a rule if it is disabled. To enable, see Enabling or Disabling a Rule.
    1. Clickfor the rule to access actions.
    2. Select Edit.
    3. Follow the steps for Creating a Lifecycle rule to change the settings.

    Enabling or Disabling a Rule

    1. Clickfor the rule to access actions.
    2. To change the rule status, select Enable or Disable, depending on the current status.
      Disabling a lifecycle rule might result in the retention of existing objects.
    3. Click Enable or Disable to confirm that you want to change the status.

    The status of the rule will change accordingly in the rule list.

    Deleting a Rule

    1. Clickfor the rule to access actions.
    2. Select Delete.
      Deleting a lifecycle rule might result in the retention of existing objects.
    3. Click Delete to confirm that you want to delete the rule.

    The deleted rule is removed from the rule list.



    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence