Working with Amazon S3 Object Expiration - Table of Contents

Recently Amazon S3 Team announced Object Expiration, a new feature that allows you to schedule the removal of objects after a defined time period.

Each expiration rule contains the prefix and an expiration period in days. The prefix (e.g. “logs/”) identifies the object(s) subject to the expiration rule, and the expiration period specifies the number of days from creation date (i.e. age) after which object(s) should be removed.

You may create multiple expiration rules for different prefixes. After an Object Expiration rule is added, the rule is applied to objects with the matching prefix that already exist in the bucket as well as new objects added to the bucket. Once the objects are past their expiration date, they will be queued for deletion.

S3 Browser Freeware allows you to easily manage Object Expiration rules. You can find more detailed instructions below.

To Add New Object Expiration rule follow these instructions:

Click Buckets ->Object Expiration Rules...

Click Buckets->Object Expiration Rules
You can also use Ctrl+I keyboard shortcut to open Object Expiration Rules editor.

Object Expiration Rules dialog will open:

object expiration rules editor
Object Expiration rules editor allows you to Add, Edit and Delete Amazon S3 Object Expiration rules.

Click the Add button. Add New Object Expiration rule dialog will open

object expiration rules editor
Add New Object Expiration rule dialog allows you to define new Amazon S3 Object Expiration rules.

Fill out these fields to add new rule:

  • Rule name - unique rule identifier, S3 Browser generates it automatically, but you can override it for better organization;
  • Prefix - identifies the object(s) subject to the expiration rule (e.g. logs/);
  • Expiration (days) - specifies the number of days from creation date (i.e. age) after which object(s) will be removed;
  • Enabled - the rule can be enabled or disabled. Mark this check-box to enable the rule.

Click Add new rule.

To edit existing Object Expiration rule:

Click Buckets ->Object Expiration Rules...

Object Expiration Rules dialog will open.

Select the rule you want to edit and click the Edit button.

edit object expiration rule button
Select the rule you want to edit and click Edit. You can also double-click the rule to edit it.

Edit Object Expiration rule dialog will open

edit expiration rule dialog
Edit Object Expiration rule dialog allows you to modify existing Object Expiration rules.

Edit rule' properties and click Save changes.

Click the Save button to send your changes to Amazon S3.

To delete one or multiple Object Expiration rule(s):

Click Buckets ->Object Expiration Rules...

Object Expiration Rules dialog will open.

Select the rule(s) you want to delete and click the Delete button.

how to delete object expiration rules
Select the rule(s) you want to delete and click Delete.

Click Save to submit your changes to Amazon S3.

download s3 browser, bucket explorer
S3 Browser 3.4.7 Free

Powered by Amazon Web Services and Rated by CNET Editors!

Follow

Twitter  Twitter
Facebook  Facebook

Like

Share

Related Products

"Amazon Web Services", "AWS", "Amazon S3", "Amazon Simple Storage Service", "Amazon CloudFront", "CloudFront", the "Powered by Amazon Web Services" logo are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries.