NavigationContentFooter
Jump toSuggest an edit

How to manage lifecycle rules from the console

Reviewed on 13 September 2024Published on 27 May 2021

With the Scaleway console, you can use lifecycle rules to manually or automatically change the storage class of your objects. These rules also allow users to set expiration dates for objects and their versions.

Lifecycle rules also allow you to automatically abort incomplete multipart uploads.

Before you start

To complete the actions presented below, you must have:

  • A Scaleway account logged into the console
  • Owner status or IAM permissions allowing you to perform actions in the intended Organization
  • An Object Storage bucket

How to create a lifecycle rule

  1. Click Object Storage in the Storage section of the side menu. The list of your buckets displays.

  2. Click the name of your bucket. The list of your objects displays.

  3. Click Lifecycle rules.

  4. Click + Create Lifecycle rule to add a rule.

  5. Enter a name for the rule.

  6. Select the scope of the lifecycle rule:

    • Apply the rule to all the objects contained in the bucket.
    • Filter the objects you want the rule to be applied to by one or both of the following criteria:
      • Prefix: based on the object name and path. The defined rule will be applied to all objects with the same name prefix.
      • Tags: comprised of a key and an associated value. These tags should be defined before rule creation, for either a bucket or an object. You can add one or more tags to your filter.
  7. Configure the behavior of the lifecycle rule:

    • Automatically transition the current version of your objects to another storage class after a specified number of days.
    • Automatically delete the current version of your objects after a specified number of days.
    • Automatically abort incomplete multipart uploads after a specified number of days.
  8. Click Next Step to proceed.

  9. Review the summary of your lifecycle rule, then click Create lifecycle rule to confirm.

Important
  • Lifecycle rules are limited to 500,000 jobs per day. Beyond this limit, you can transition or delete your objects manually.

  • Lifecycle rules only allow the following transitions:

    • Standard -> Onezone IA
    • Standard -> Glacier
    • Onezone IA -> Glacier

How to disable a lifecycle rule

  1. Click Object Storage in the Storage section of the side menu. A list of your buckets displays.
  2. Click the name of your bucket.
  3. Click the Lifecycle rules tab. A list of your rules displays.
  4. Click «See more Icon» next to the rule name.
  5. Click Disable. A confirmation window pops up.
  6. Click Disable lifecycle rule to confirm.
Note

Once disabled, the lifecycle rule remains listed and can be enabled again. Click «See more Icon», then select Activate to re-enable it.

To permanently delete a rule, click «See more Icon», then click Delete.

See also
How to create and manage bucket policiesHow to view and abort incomplete multipart uploads
Docs APIScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCarreer
© 2023-2024 – Scaleway