Thursday, July 04, 2013

How to Manage S3 Lifecycle Rules with CrossFTP

S3 lifecycle rule identifies objects and actions that you want Amazon S3 to perform when the objects reach a specific date or a time interval since their creation. You can define one or more rules for each bucket, as shown in the Fig. 1.

Fig. 1 Lifecycle Rules

For each lifecycle rule, you need  to specify the following attributes:
  • Enabled – If selected, indicates that the rule is enabled. If cleared, Amazon S3 will not apply the rule to associated objects.
  • Name – (Optional) Identifies the rule. The name must be unique within the bucket. By default, CrossFTP will generate a unique identifier for the rule.
  • Prefix – Specifies the subset of objects to which the rule applies. For example, "logs/" would apply to all objects in the "logs" folder.
  • Time Period Format – Specifies whether the rule will be applied a specified number of days from the date the object was created or on a specified date.
There are two types of actions available for a rule:
  • A transition action archives an object to Glacier and the object will no longer be immediately accessible. This rule is shown in Fig. 2.
Fig. 2 Transition Rule
Attention: Archived objects are not directly accessible unless you restore a temporary copy. Additionally, you cannot use a lifecycle configuration rule to change the storage class of the archived object from Glacier to Standard or RRS.
  • An expiration action deletes the object, as shown in Fig. 3.
Fig. 3 Expiration Rule

You can combine these two actions in the same rule. After you Add/Edit/Delete the lifecycle rule, press the "Save" button to save the changes.

CrossFTP is a FTP, SFTP, FXP, WebDav, Amazon S3, Amazon Glacier and Google Cloud Storage client for Windows, Mac, and Linux.
CrossFTP Team

No comments: