#AmazonforallSeries P3 | AWS Storage lifecycle management

#AmazonforallSeries P3 | AWS Storage lifecycle management

Today I will be talking about AWS Storage – Lifecycle Management. So, we will start with the basics. If you don’t have any idea related to Storage classes, go to my previous article where I have defined every AWS Storage class. Please Click HERE

What is AWS lifecycle management?

In lifecycle management, Amazon S3 Bucket applies a set of rules that defines actions to a group of objects

With the lifecycle management, you can manage and store data cost effectively. In lifecycle management, there are TWO actions you can do on the objects / data.

·      Transition actions

·      Expiration actions

What is Transition Action?

With the transition action, you can move your data or objects to another storage class when some condition is met. Like we have 3 storage classes

S3 Standard >> S3 Infrequent access >> Glacier

Suppose you have not used your files frequently or not accessed your files or objects for 30 days, then that object will be moved or transfer to another Storage class that is S3 Infrequent access.

Same case in S3 Infrequent access storage class, if you have not accessed or used your files or objects for 60 days then it will be moved or transferred to another storage class that is AWS Glacier.

So, we can say here that transition action life cycle management helps you to transfer your data or object from one storage class to the another or lower cost storage class that actually save your cost as your data ages.

Here we will proceed with the next type that is expiration transition

What is Expiration Action?

In Expiration action, S3 removes all the objects or data in the bucket when a specific date or time period of specific object’s lifetime is reached. So, you have to define when any specific object’s lifetime will end so that specific object will be deleted when the defined time or date is fulfilled.

So, we will proceed with the Transition Action Demo.

In this demo we will see the scenario where we will create a transition rule where If you will not access your files for 30 days which is currently available in S3 standard storage class then it will be moved to Standard-IA (infrequent access) storage class. Similarly, if you will not access your files for 60 days which is currently available in Standard-IA storage type then it will be moved to the Amazon Glacier storage class.

1-   Go to the AWS portal (aws.amazon.com) and Search for S3

No alt text provided for this image

2-   Go to the Amazon S3 >> Go to the S3 Bucket Name whatever you have made earlier. 

No alt text provided for this image

3-   Go to the Management TAB >> Lifecycle >> Add lifecycle rule

No alt text provided for this image

4-   On the Lifecycle rule wizard >> Enter any rule name >> Next

No alt text provided for this image

5-   On the Storage class transition page >> Check the “Current Version” 

No alt text provided for this image

6-   Click on + Add transition >> Object Creation (Select Transition to Standard-IA after) >>Days after creation (30 days)

No alt text provided for this image

7-   Click again on + Add transition >> Object Creation (Select Transition to Glacier after) >>Days after creation (60 days) >> Click Next >> Click Save

No alt text provided for this image
No alt text provided for this image

8-   So, here your lifecycle management rule for transition has been created and active

So, we will proceed with the Expiration Action Demo.

Go to the Place where we have created our previous transition rule earlier.

1-   Go to the Management TAB >> Lifecycle >> Add lifecycle rule

No alt text provided for this image

2-   On the Lifecycle rule wizard >> Enter any rule name >> Next

No alt text provided for this image

3-   On the Storage class transition page >> Leave it to default and don’t click on anything and select Next  

No alt text provided for this image

4-   On the Configure expiration >> Check “Current Version” >> Check Expire current version of object After (Give the expire time convert into days) like I have given 2555=7 years and Click Next >> Save

No alt text provided for this image
No alt text provided for this image

5-   Here you have created your expiration rule where your file or data will be deleted after 7 years (7*365=2555 days).

要查看或添加评论,请登录

社区洞察

其他会员也浏览了