【问题标题】:AWS S3 lifecycle configuration filters to disable the storage class glacier to some folder in the same bucketAWS S3 生命周期配置过滤器以禁用存储类冰川到同一存储桶中的某个文件夹
【发布时间】: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


    【解决方案1】:

    拥有 Status: Disabled 仅表示 Amazon S3 不会对禁用的规则 check here 采取任何操作。所以基本上这些规则是没有用的。 atm 没有办法直接排除某些前缀。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-19
      • 2023-03-22
      • 2020-04-12
      • 1970-01-01
      • 2022-01-02
      • 1970-01-01
      相关资源
      最近更新 更多