Working with Bucket Lifecycle Bucket Lifecycle Rules Overview Bucket lifecycle rules allow you to manage objects lifecycle. Using lifecycle rules you can schedule the following actions: - Transition - archiving objects to Amazon Glacier
- Expiration - removal of objects
Each lifecycle rule includes: - ID (name) - You can assign any unique name to your rule.
- Prefix (path) - identifies one or more files to which the rule applies (e.g. �logs/�). Empty path means all files
- Time period format - the number of days from the creation date of the file when the rule take effect or an exact date.
- Action - actions that you want Amazon S3 to perform on the specified objects: Transition and/or Expiration.
Amazon S3 objects that were archived to Amazon Glacier using lifecycle rules are only accessible through the S3 Clients and are not accessible through the Amazon Glacier Clients
To add new lifecycle rule 1. Select the bucket you want to work with and click Buckets -> Lifecycle Configuration.. 
Select the bucket and click Buckets -> Lifecycle Configuration.. Bucket Lifecycle Rules dialog will appear: 
Bucket Lifecycle Rules dialog 2. Click the Add button. Add New Lifecycle Rule dialog will appear: 
Add New Lifecycle Rule dialog 3. Specify the following rule properties: - Rule name - You can assign any unique name to your rule.
- Path - identifies one or more files to which the rule applies (e.g. �logs/�). Empty path means all files.
- Time period format - the number of days from the creation date of the file when the rule take effect or an exact date.
- Transition to Amazon Glacier - turn on to automatically move files to Amazon Glacier after a defined time period.
- Expiration - turn on to automatically delete files after a defined time period.
- Days or Date - specify the number of days or an exact date for an each action.
4. Click Add new rule 5. Click Save to submit your changes to Amazon S3.
To edit existing lifecycle rule 1. Select the bucket you want to work with and click Buckets -> Lifecycle Configuration.. 
Select the bucket and click Buckets -> Lifecycle Configuration.. Bucket Lifecycle Rules dialog will appear: 
Bucket Lifecycle Rules dialog 2. Click the Edit button. Edit Lifecycle Rule dialog will appear: 
Edit Lifecycle Rule dialog 3. Edit rule' properties and click Save changes 4. Click Save to submit your changes to Amazon S3.
To delete one or multiple lifecycle rules 1. Select the bucket you want to work with and click Buckets -> Lifecycle Configuration.. Bucket Lifecycle Rules dialog will appear: 
Select the rule(s) you want to delete and click Delete. 2. Select the rule(s) you want to delete and click the Delete button. 3. Click Save to submit your changes to Amazon S3.
|