AWS:使用 'Lifecycle Rule' 永久删除不到 30 天的 S3 对象
AWS: Delete Permanently S3 objects less than 30 days using 'Lifecycle Rule'
有没有一种方法可以在 S3 生命周期上配置以删除少于 30 天的对象(假设我想在 5 天内永久删除而不移动到任何其他存储 class,例如冰川?
还是我应该使用其他替代方案,例如 Lambda?
我相信,S3'Lifecycle Rule'允许存储class只有30多天。
您可以使用 expiration action:
Define when objects expire. Amazon S3 deletes expired objects on your behalf.
您可以将过期时间设置为 5 天或 1 天,或适合您的设置。例如,对于一个版本桶,您可以在 5 天后删除当前和以前的版本,如屏幕截图所示:
关于存储 classes。您仍然可以删除对象,但如果不从标准 class 中删除,您将需要支付 30、90 或 180 天的费用,depending on the storage class:
If you create an S3 Lifecycle expiration rule that causes objects that have been in S3 Intelligent-Tiering, S3 Standard-IA, or S3 One Zone-IA storage for less than 30 days to expire, you are charged for 30 days. If you create a Lifecycle expiration rule that causes objects that have been in S3 Glacier storage for less than 90 days to expire, you are charged for 90 days. If you create a Lifecycle expiration rule that causes objects that have been in S3 Glacier Deep Archive storage for less than 180 days to expire, you are charged for 180 days.
有没有一种方法可以在 S3 生命周期上配置以删除少于 30 天的对象(假设我想在 5 天内永久删除而不移动到任何其他存储 class,例如冰川? 还是我应该使用其他替代方案,例如 Lambda?
我相信,S3'Lifecycle Rule'允许存储class只有30多天。
您可以使用 expiration action:
Define when objects expire. Amazon S3 deletes expired objects on your behalf.
您可以将过期时间设置为 5 天或 1 天,或适合您的设置。例如,对于一个版本桶,您可以在 5 天后删除当前和以前的版本,如屏幕截图所示:
关于存储 classes。您仍然可以删除对象,但如果不从标准 class 中删除,您将需要支付 30、90 或 180 天的费用,depending on the storage class:
If you create an S3 Lifecycle expiration rule that causes objects that have been in S3 Intelligent-Tiering, S3 Standard-IA, or S3 One Zone-IA storage for less than 30 days to expire, you are charged for 30 days. If you create a Lifecycle expiration rule that causes objects that have been in S3 Glacier storage for less than 90 days to expire, you are charged for 90 days. If you create a Lifecycle expiration rule that causes objects that have been in S3 Glacier Deep Archive storage for less than 180 days to expire, you are charged for 180 days.