From the course: Applying Cost Optimization Tools to Your AWS Workloads

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Lifecycle policies

Lifecycle policies

- [Instructor] To set up a lifecycle policy for an S3 bucket, we first have to open the S3 console and select the bucket where we'd like to add a lifecycle policy. Under Properties, and scrolling down, we can see that Versioning is enabled, and Versioning has to be enabled before we can actually set a lifecycle policy in place. Going over to Management is where we can set our lifecycle rules. We're going to create a lifecycle rule name called Older_Versions. We want this to apply to all objects in the bucket, and we have to acknowledge that this rule indeed is going to apply to all the objects in the bucket. Now, what do I want to do? I want to move the non-current versions of objects between storage classes. Where I want to move these objects is to Glacier Deep Archive. After 60 days, I can continue to add other transitions if I wished. I also have to acknowledge that if the objects are very small, there's going to be a charge for every single object. We'll acknowledge this, and then…

Contents