Lifecycle policies are a great way to manage all the object lifecycles and achieve compliance. These rules are defined using XML and you can use the APIs to specify them. The following transitions are valid:
In our example we deal with hot objects accessed in real time, optimize them for Infrequent Access and then moved to a colder storage; in this case Amazon Glacier. After a year has passed the objects need to be deleted permanently.
To add a lifecycle rule, execute the following steps:
- Navigate to the bucket to be managed, choose the Management tab, and under Lifecycle choose + Add lifecycle rule:
- You will be prompted to choose a Name and scope for the rule, here you can use multiple object tags to filter and a prefix.
- In the step 2 Transitions, you can configure transitions for current versions and previous versions of the objects. Note that in...