Chapter 10. Managing Object Lifecycle to Lower the Cost

In this chapter, you will learn:

  • How to apply the lifecycle policy through the S3 console
  • How to apply the lifecycle policy with AWS CLI

Introduction

Amazon S3 allows users to manage objects' lifecycles in order to lower the cost of S3 objects that should be removed in a certain period, archive log files that should be stored for backup, or auditing in the future. For example, you can configure a lifecycle policy to automatically delete objects in a week because the objects are a collection of data to create reports and are not needed anymore after that. Otherwise you can archive objects into Amazon Glacier in a month because the objects are system log files, which need not be examined immediately ...

Get Amazon S3 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.