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
posta 2 anni fa335 visualizzazioni
1 Risposta
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
con risposta 2 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande