Search code examples
javaamazon-s3minio

How can I set lifecycle rule for object (minIO)?


I'm looking for solution that allow me to set lifecycle policy for object in minio storage.

What do I want?
I want to delete objects from minIO storage after 30 min.

Possible, but not suitable solution

  1. Chronos + mc rm -f --older-than 30m.
  2. AWS S3 Lifecycle rule (it doesn't allow to set lifecycle using minutes).

Solution

  • According to this minio

    The lifecycle checks every 24 hours. So the 30 mins expiration won't work.