# S3 Lifecycle Management

- Source: https://support.icompaas.com/support/solutions/articles/62000218667-s3-lifecycle-management
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [Cost Saving Recommendations](https://support.icompaas.com/support/solutions/62000111796) › [Best Practices](https://support.icompaas.com/support/solutions/folders/62000167379)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

## **AWS Services:**

Amazon Simple Storage Service (S3) is an object storage service that offers industry-leading scalability, data availability, security, and performance. This means customers of all sizes and industries can use it to store and protect any amount of data for a range of use cases, such as data lakes, websites, mobile applications, backup and restore, archive, enterprise applications. S3 is designed for 99.999999999% (11 9's) of durability, and stores data for millions of applications for companies all around the world.

  

## **Description:**

An **S3 Lifecycle configuration** is a set of rules that define actions that Amazon S3 applies to a group of objects. There are two types of actions:

-   Transition actions - It is when objects transition to another S3 storage class. For example, you might choose to transition objects to the S3 Standard-IA storage class 30 days after creating them or archive objects to the S3 Glacier storage class one year after creating them.
    
-   Expiration actions - It is when objects expire, S3 deletes expired objects on your behalf.
    
    The lifecycle expiration costs depend on when you choose to expire the objects.
    

  

## **Implementation Plan:**

### Pre Requisites:

-   Have a clear cloud backup strategy:
    
    -   How frequently data is accessed
        
    -   Number of days for keeping data 
        
    -   Decommissioning plan
        

  

#### **Detailed Steps:**

### **“Rule applies to all objects in the bucket“ - Understanding with an Example:**

1.  Sign in to the AWS Management Console 
    
2.  Go to the Amazon S3 console at [https://console.aws.amazon.com/s3/](https://console.aws.amazon.com/s3/ "https://console.aws.amazon.com/s3/")
    
3.  In the bucket list available click on the bucket name you want to create lifecycle rules
    
4.  Select the **Management** tab and click on **create lifecycle rule**
    
5.  In the **Lifecycle rule name**, enter a name for your rule
    
6.  Choose the scope of the lifecycle rule:
    
    1.  To apply this lifecycle rule to _all objects with a specific prefix or tag_, choose to Limit the scope to specific prefixes or tags.
        
    2.  To limit the scope by prefix, in Prefix, enter the prefix.
        
    3.  To limit the scope by tag, choose Add tag, and enter the tag key and value.
        
    4.  To apply this lifecycle rule to _all objects in the bucket_, choose This rule applies to _all_ objects in the bucket, and choose I acknowledge that this rule applies to all objects in the bucket.  
        ![](https://support.icompaas.com/assets/kb/73b0e02f2208196e.png)
        
7.  Under **Lifecycle rule actions**, choose the actions that you want your lifecycle rule to perform:
    1.  Transition _current_ versions of objects between storage classes
        
    2.  Transition _previous_ versions of objects between storage classes
        
    3.  Expire _current_ versions of objects
        
    4.  Permanently delete _previous_ versions of objects
        
    5.  Delete expired delete markers or incomplete multipart uploads  
        ![](https://support.icompaas.com/assets/kb/a1b0af6a53226dde.png)  
        Depending on the actions that you choose, different options appear.
        
8.  Choose **Create rule**.  
    

  

  

  

### **“Rule applies to all objects in the bucket“ - Understanding with an Example:**

Let’s assume a backup scenario that 

-   After 90 days I want to move data to the glacier
    
-   After 1 year I want to move it to the deep glacier 
    
-   And after 10 years I want to delete it
    

**We will see how we can proceed to create a lifecycle according to the above rules**

1.  Sign in to the AWS Management Console 
    
2.  Go to the Amazon S3 console at [https://console.aws.amazon.com/s3/](https://console.aws.amazon.com/s3/ "https://console.aws.amazon.com/s3/")
    
3.  In the bucket list available click on the bucket name you want to create lifecycle rules
    
4.  Select the **Management** tab and click on **create lifecycle rule**  
    **![](https://support.icompaas.com/assets/kb/a730c44e13553ccd.png)**
    
5.  In the **Lifecycle rule name**, enter a name for your rule.
6.  Choose the scope of the lifecycle rule:
    1.  To apply this lifecycle rule to **all objects with a specific prefix or tag**, choose to **Limit the scope to specific prefixes or tags.**
        -   To limit the scope by prefix, in Prefix, enter the prefix.
            
        -   To limit the scope by tag, choose Add tag, and enter the tag key and value.
            
    2.   To apply this lifecycle rule to **all objects in the bucket**, choose This **rule applies to all objects in the bucket**, and choose I acknowledge that this rule applies to all objects in the bucket.  
        ![](https://support.icompaas.com/assets/kb/55780f9c159c1d69.png)  
        **Note**: Here we are selecting **This rule applies to all objects in the bucket.**
        
7.  Under **Lifecycle rule actions**, choose the actions that you want your lifecycle rule to perform:
    -   Select **Transition current versions of objects between storage classes**  
        ![](https://support.icompaas.com/assets/kb/e75dbf0df01a1828.png)**Note:** Here I am selecting the current version you can also select the previous version or both or any option available as per your requirement.  
        
    -   Select **Glacier in Storage class transitions** and **enter 90 in Days after object creation** column
    -   Click on Add transaction and **select Glacier Deep Archive in**  **Storage class transitions** and **enter 365 in** **Days after object creation** column and acknowledge.  
        ![](https://support.icompaas.com/assets/kb/48de37613cca3541.png)
    -   Select **Expire current versions of objects** under **Lifecycle rule actions**  
        **![](https://support.icompaas.com/assets/kb/a6677d721ecee058.png)**
    -   **Enter 3650(i.e, 10 years) in the** **Number of days after object creation option under Expire current versions of objects**  
        **![](https://support.icompaas.com/assets/kb/d97d75fa03956207.png)**
8.  Review all the options selected in the summary shown at the bottom and click on **Create rule**  
    **![](https://support.icompaas.com/assets/kb/fe37a9f8ec05813a.png)**  
    

  

**References:**

[![](https://support.icompaas.com/assets/kb/ad3f667038e987fa.png)Managing your storage lifecycle - Amazon Simple Storage Service](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lifecycle-mgmt.html)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
