How to manage lifecycle rules from the console
The Scaleway console allows you to automatically manage the lifecycle of your object by setting lifecycle rules. These rules allow you to automatically:
- Delete your objects and their versions by setting expiration durations
- Transition objects and their versions to a colder storage class
- Abort incomplete multipart uploads
You can either apply these rules to each object in a bucket or to a specific set of objects by using filters based on prefixes and tags.
Lifecycle rules only allow the following transitions:
- Standard Multi-AZ -> Standard One Zone
- Standard Multi-AZ -> Glacier
- Standard One Zone -> Glacier
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
-
Click Object Storage in the Storage section of the side menu. The list of your buckets displays.
-
Click the name of your bucket. The list of your objects displays.
-
Click Lifecycle rules.
-
Click + Create Lifecycle rule to add a rule.
-
Enter a name for the rule.
-
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:
-
-
Configure the behavior of the lifecycle rule:
-
Automatically transition the current version of your objects to a colder storage class after the specified number of days.
-
Automatically transition the non-current versions of your objects to a colder storage tier after the specified number of days.
-
Automatically expire and delete the current version of your objects after the specified number of days.
-
Automatically expire and delete non-current versions of an object after a specified number of days once it becomes non-current.
-
Automatically abort incomplete multipart uploads after a specified number of days.
-
-
Click Next Step to proceed.
-
Review the summary of your lifecycle rule, then click Create lifecycle rule to confirm.
Your new rule is enabled and appears in the lifecycle rules list.
How to disable a lifecycle rule
-
Click Object Storage in the Storage section of the side menu. A list of your buckets displays.
-
Click the name of your bucket.
-
Click the Lifecycle rules tab. A list of your rules displays.
-
Click more icon next to the rule name.
-
Click Disable. A confirmation window pops up.
-
Click Disable lifecycle rule to confirm.
To permanently delete a rule, click more icon next to its name, then click Delete.