Problem:
Experiment and learn Amazon S3 Tired Storage & Lifecycle Management.
Solution Summary:
We will configure S3 lifecycle management and will be using different tiers of Se such as S3-IA, and Glacier.
Prerequisites:
This lab assumes that you have already setup AWS account, have explored S3 and created a bucket before.
Solution Steps:
-
Log into AWS console and go to S3 dashboard.
-
Cleanup old buckets (optional)
-
Create a new bucket (or reuse one) with a region in which Glacier is available.
-
Enable versioning on the bucket. Note: Lifecycle management can work with or without enabling versioning.
-
Click on the bucket and go to Management tab.
-
Now go to Lifecycle sub tab (usually selected by default).
-
Click on Add Lifecycle Rule.
-
Give a name (e.g. demolifecyclerule) and leave filter text box empty to select whole bucket. You could select a specific folder or object.
-
Add transitions for current version and previous versions of objects with minimum required days:
-
Transition to Standard-IA after 30 days
-
Transition to Glacier after 60 days
-
Note: If you do not have transition to Standard-IA, there is no restriction on minimum days for glacier.
-
-
-
Click next and Configure expiration for current and previous versions with minimum required values:
-
Expire current version of object: 61 days
-
Permanently delete previous versions: 61 days
-
Clean up incomplete multipart uploads: 1 days
-
Note: You cannot enable clean up expired object delete markers if you enable Expiration.
-
-
Click next, verify the details and save.
-
Try editing, to delete Transition to Standard-IA and set a lower value for Transition to Glacier after, than 60 days.
-
-
Finally, delete lifecycle rule.
Comments
done
done