s3 per object expiry

前端 未结 6 715
我在风中等你
我在风中等你 2020-12-29 02:00

I know how to expire objects in an S3 bucket using object expiration rules given a certain prefix, however for my purposes, I would like to set the expiry date programmatica

6条回答
  •  太阳男子
    2020-12-29 02:54

    Similarly to Eric's answer you could set a short bucket lifecycle policy and then use retention period locks (see the docs) to set expiration dates on a per-object basis.

提交回复
热议问题