AWS - S3 Lifecycle

 

An S3 Lifecycle configuration is a set of rules that define actions that Amazon S3 applies to a group of objects. There are two types of actions:

To manage your objects so that they are stored cost-effectively throughout their lifecycle, configure their Amazon S3 Lifecycle. 

There are two types of actions:

Transition actions – These actions define when objects transition to another storage class. For example, you might choose to transition objects to the S3 Standard-IA storage class 30 days after creating them, or archive objects to the S3 Glacier Flexible Retrieval storage class one year after creating them. 

Expiration actions – These actions define when objects expire. Amazon S3 deletes expired objects on your behalf.

Lifecycle expiration costs depend on when you choose to expire objects.

 



 


When an object reaches the end of its lifetime based on its lifecycle configuration, Amazon S3 takes an action based on which state the bucket is in.

What do expire current versions of objects mean?

Expiration deletes the object, and the deleted object cannot be recovered - No versioned bucket.

Versioning-enabled bucket - If the current version is not a delete marker, Amazon S3 creates a delete marker, which becomes the current version, and the existing current version is retained as a noncurrent version.

In the Permanently delete previous versions of objects field, enter "1" in the Number of days after objects become noncurrent field.



Leave the Number of newer versions to retain field empty to delete all versions.

Select Delete incomplete multipart uploads and enter "1" for the Number of days field.



The time to delete the objects may vary between days and weeks depending on the size of the bucket and objects. 

I recently deleted 6 million objects and it took 2 weeks to empty them.







Comments

  1. AWS Cloud Consulting Services offers amazing benefits for businesses, including scalability, cost savings, a global infrastructure, robust security measures, and a platform for innovation and integration. By leveraging AWS services, businesses can optimize their infrastructure, drive growth, and deliver exceptional experiences to their customers. Whether you're a startup or an enterprise, AWS provides the tools and resources to help you succeed in today's digital landscape.

    ReplyDelete

Post a Comment

Popular posts from this blog

K8s - ETCD

SRE/DevOps Syllabus

K8s - Deployment and HPA replicas