Beitrag von Florin Gruber, Juni 2025

Custom Lifecycle Policies in Swiss S3 Storage

When managing data in Swiss S3, one of the critical aspects is the lifecycle of stored objects. When properly configured, S3 Lifecycle Policies can save costs by automatically moving or deleting objects. Today, we'll examine a specific S3 Lifecycle Policy in detail to better understand its components and effects.

What is an S3 Lifecycle Policy?

An S3 Lifecycle Policy is a set of rules that determine which actions the S3 storage applies to a group of objects.

Here's an example of a simple S3 Policy:

{
    "Rules": [
        {
            "Expiration": {
                "Days": 30
            },
            "ID": "Backup-ONE-Policy-Generator-ExpireFiles30d-d00d3c381a1ca0fad3722ab9c3810",
            "Filter": {},
            "Status": "Enabled",
            "AbortIncompleteMultipartUpload": {
                "DaysAfterInitiation": 2
            }
        }
    ]
}

The Components of S3 Lifecycle Policy in Detail

  1. Expiration:
    • This is a time-based action where objects are marked after a specific duration.
    • Days: 30: S3 objects are automatically deleted (expire) 30 days after their creation.
  2. ID (Identifier):
    • A unique identifier for the lifecycle policy, particularly helpful when multiple policies are involved.
  3. Filter:
    • The filter can be used to select all files in a specific folder, for example. The shown policy has an empty filter, meaning it applies to every object in the Swiss S3 bucket.
  4. Status:
    • Indicates whether the policy is currently active (Enabled) or not (Disabled).
  5. AbortIncompleteMultipartUpload:
    • If an object upload is started but not completed within the specified time (in this case 2 days), the upload process is aborted. This feature is important to avoid unnecessary storage costs from incomplete data uploads.

Benefits of Using Lifecycle Policies

  1. Cost Savings: By automatically deleting unnecessary or outdated data or transferring it to more cost-effective storage options, companies can optimize their AWS costs.
  2. Data Management: With automated rules, no manual intervention is required to manage outdated or temporary data, making data management more efficient.
  3. Enhanced Security: By ensuring that incomplete or temporary data doesn't linger, companies reduce the risk of potential data breaches or leaks.

Conclusion

Swiss S3 Lifecycle Policies, like the one examined today, provide a powerful tool in the S3 portfolio for automating data management tasks. Through proper understanding and application, companies can not only save costs but also ensure an organized and secure data storage strategy.