Lifecycle
A lifecycle policy automatically deletes objects stored in a bucket after a specified period. You can apply a policy to all objects, objects with a specific prefix, or objects with specific object tags.
Configure and manage lifecycle policies
You can create and manage lifecycle policies for buckets.
To view bucket permission information, the storage.buckets.getIamPolicy permission is required. For roles that include this permission, see Roles and permissions.
Configure lifecycle
For objects in a bucket, you can set a retention period from at least 1 day to up to 18,250 days (50 years). After the configured retention period passes, objects are automatically deleted according to the lifecycle policy.
The feature for moving objects to a different bucket type will be updated later.
- Go to KakaoCloud Console > Storage > Object Storage.
- In the General Bucket menu, select a bucket.
- In the Management list, click [Create lifecycle], enter the lifecycle policy, and click [Create].
Lifecycle policy input fields are as follows.
| Category | Description |
|---|---|
| Target bucket | Bucket name |
| Lifecycle policy name | Name used to identify the lifecycle policy |
| Rule | Objects to which the lifecycle policy applies - All objects: Apply the lifecycle policy to all objects in the bucket - Specify Prefix: Enter the prefix of objects to which the policy applies - Example: To apply the policy to all objects that start with elastic-, select Specify Prefix and enter elastic- in the input field- Specify object tag: Enter the tag information of objects to which the policy applies |
| Action | Lifecycle policy to apply - Delete after expiration: Delete objects when the specified period expires |
| Retention period | Period that objects are retained in the bucket |
AbortIncompleteMultiPartUpload settings can be applied to lifecycle rules through the API. This rule provides a feature to abort file uploads that are not completed within a specified number of days.
Aborting incomplete file uploads can help reduce storage costs.
Manage lifecycle policies
- Go to KakaoCloud Console > Storage > Object Storage.
- In the General Bucket menu, click a bucket.
- On the bucket details page, go to the Management list.
- In the lifecycle policy list, select a configured policy.
- Click the edit button to modify the policy. You can also enable or disable the policy as needed.
The lifecycle policy list displays the following fields.
| Category | Description |
|---|---|
| Lifecycle policy name | Name used to identify the lifecycle policy |
| Status | - Enabled: The lifecycle policy is applied to the bucket - Disabled: The lifecycle policy is not applied to the bucket |
| Rule | - All: Apply the lifecycle policy to all objects in the bucket- Prefix: Prefix of objects to which the policy applies- Tag: Tag information of objects to which the policy applies |
| Action | Lifecycle policy to apply - Delete after expiration: Delete objects when the specified period expires |
| Retention period | Period that objects are retained in the bucket |
| [⋮] button | - Enable policy: Enable a disabled lifecycle policy - Disable policy: Disable an enabled lifecycle policy - Configure lifecycle: Modify the lifecycle policy - Delete policy: Delete the lifecycle policy |