Why is my S3 lifecycle configuration isn't working as expected?

0

Hi,

I have a versioned bucket where I want deleted and other non-current objects to be moved to Glacier after some period of time. I configured a bucket policy that should move non-current versions after 1 day to test this:

{
    "Rules": [
        {
            "ID": "Move deleted to Glacier",
            "Filter": {},
            "Status": "Enabled",
            "NoncurrentVersionTransitions": [
                {
                    "NoncurrentDays": 1,
                    "StorageClass": "GLACIER_IR"
                }
            ]
        }
    ]
}

Enter image description here

But the object is still there with the "Standard" storage class more than 10 days after it was deleted:

Enter image description here

Why is this, and how can I move all non-current and deleted objects to another storage class (Glacier)?

leshik
已提問 2 年前檢視次數 335 次
1 個回答
0

Thanks for posting. First, a "Delete" marker is a placeholder for a versioned file in the "s3" bucket, and it will only allow performing the "Delete" action into this. Because "Delete" marked files or objects are not coupled with any data or access control list (ACL) value. Furthermore, it cannot retrieve anything from "GET" requests due to free for any data association. and even cant performed any API calls except "Delete".

As per definition, the only action that can be performed is "Delete", Therefore "Delete" markers will not be able to transition or move from the standard bucket to any other storage class bucket or vice-versa.

VISI
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南