【发布时间】:2020-12-17 00:31:36
【问题描述】:
我有一个包含许多文件夹的存储桶,我最初已将生命周期规则应用于整个存储桶,现在我想排除存储桶中的一些文件夹(前缀:folderA 和 FolderB/ContentA)?
Bucket Structure:s3://mybucket/
-folderA
-FolderB/ContentA
LifecycleConfiguration:
Rules:
-
Prefix: organization_excluded/
Status: Disabled
Transitions:
-
StorageClass: GLACIER
TransitionInDays: 1
-
Prefix: dbo/organization_excluded/
Status: Disabled
Transitions:
-
StorageClass: GLACIER
TransitionInDays: 1
-
Status: Enabled
Transitions:
-
StorageClass: GLACIER
TransitionInDays: 1
在上述过滤规则中,一天后,整个内容都更改为 Glacier 的存储类,但我的要求是前缀如下:folderA 和 FolderB/ContentA 不应更改为 Glacier,因为我已禁用,这是因为 TransitionInDays 设置为1,如果我删除前缀文件夹堆栈的TransitionInDays参数失败,这里有没有我错过的东西。
【问题讨论】:
标签: amazon-s3 yaml amazon-cloudformation amazon-glacier