如何在 Amazon Glacier 中设置存储期限?

How to set up storing period in Amazon Glacier?

我了解到 Glacier 可以存储 "month, years and even decades" 的文档。 我可以在哪里或如何指定存档需要在亚马逊存储多长时间?

S3 生命周期策略。

您可以指定从一个存储 class 到另一个存储的转换,以及对象将被自动删除的过期日期。

查看 put-bucket-lifecycle.

的文档

你引用的上下文:

Amazon Glacier is designed for use cases where data is retained for months, years, or decades. Deleting data from Amazon Glacier is free if the archive being deleted has been stored for three months or longer. If an archive is deleted within three months of being uploaded, you will be charged an early deletion fee.

https://aws.amazon.com/glacier/faqs/

这里的要点是,glacier 旨在用于长期存储,而不是短期存储,如果您在其预期应用之外使用 glacier,您将至少支付 3 个月的费用。

Glacier 不会自行删除内容。