EMAIL SUPPORT

dclessons@dclessons.com

LOCATION

NZ

LAB Lifecycle Policy for S3 Bucket

LAB Lifecycle Policy for S3 Bucket

Posted on Jan 17, 2020 (0)

LAB Lifecycle Policy for S3 Bucket

Task :

  • Add Life Cycle name DC lessons-lifecycle-rule
  • Use current and Choose Transition to Standard-IA after for 30 days
  • Use previous version Transition to One Zone-IA after for 30 days and Transition to Amazon Glacier after 60days .

Follow the following steps to complete the Lifecycle of a bucket.

  • Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/.
  • In the Bucket name list, choose the name of the bucket that you want to create a lifecycle policy for, choose dclessons1
  • Choose the Management tab, and then choose Add lifecycle rule.

In the Lifecycle rule page, enter a rule name which will help you to identify the rule later. The name should be always unique within the bucket. Configure the rule as follows mentioned below:

  • Now if you want to apply this lifecycle rule to all objects with a specified prefix name, provide prefix name. This lifecycle rule scope can be limited to one or more object tags, you can also combine a perfix and tags.

Now choose Next in order to apply the above configured lifecycle to all objects. Here you can also define or set the transitions for previous and current object versions. By this versioning feature you can be able to keep multiple versions of an object in one bucket.

  • Select Current version to define transitions that are applied to the current version of the object.
  • Select Previous version to define transitions that are applied to all previous versions of the object.

Choose Add transitions and specify one of the following transitions:

  • Now Choose Transition to Standard-IA after option , and provide the number of days that you want the transition to be applied after the creation of an object (for example, 30 days).
  • Choose Transition to One Zone-IA after, and provide the number of days that you want the transition to be applied after the creation of an object (for example, 30 days).
  • Choose Transition to Amazon Glacier after, and provide the number of days that you want the transition to be applied after the creation of an object (for example, 60 days).

  • For our example, select both Current version and previous version.
  • Select Expire current version of object and then enter the number of days after object creation to delete the object (for example, 395 days). If you select this expire option, you cannot select the option to clean up expired delete markers.
  • Select Permanently delete previous versions and then enter the number of days after an object becomes a previous version to permanently delete the object
  • It is a recommended best practice to always select Clean up incomplete multipart uploads. For example, type 7 for the number of days after the multipart upload initiation date that you want to end and clean up any multipart uploads that have not completed. Choose Next.

  • For Review, verify the settings for your rule. If you need to make changes, choose Previous. Otherwise, choose Save.
  • If the rule does not contain any errors, it is listed on the Lifecycle page and is enabled


Comment

    You are will be the first.

LEAVE A COMMENT

Please login here to comment.