Is it possible to automatically delete objects older than 10 minutes in AWS S3?

前端 未结 3 977
深忆病人
深忆病人 2021-02-04 13:34

We want to delete objects from S3, 10 minutes after they are created. Is it possible currently?

3条回答
  •  孤街浪徒
    2021-02-04 14:25

    If anyone is still interest in this, S3 now offers Life Cycle rules which I've just been looking into, and they seem simple enough to configure in the AWS S3 Console.

    The "Management" tab of an S3 bucket will reveal a button labeled "Add lifecycle rule" where users can select specific prefixes for objects and also set expiration times for the life times of the objects in the bucket that's being modified.

    For a more detailed explanation, AWS have published an article on the matter, which explains this in more detail here.

提交回复
热议问题