- A Cloud Guru
Creating a Basic Amazon S3 Lifecycle Policy
Data is often useful for a limited period of time when it is accessed frequently. Once that period of usefulness has passed though, the data is kept just in case it needs to be reviewed later. This type of data can be archived — and archived storage is typically more cost-effective. AWS offers Glacier as a long-term archive storage service with lower costs than other storage options. Data can be moved automatically between S3 storage classes using a lifecycle policy. In this hands-on lab, we will create a lifecycle policy. For the latest on AWS S3, see the information on [Amazon S3 storage classes](https://aws.amazon.com/s3/storage-classes/?nc=sn&loc=3).
Table of Contents
Create an S3 Bucket and Upload an Object
Create an S3 bucket and upload an object.
Create a Lifecycle Policy
Create a lifecycle policy that moves objects to Glacier Flexible Retrieval (formerly Amazon Glacier) if they haven't been accessed in the last 30 days. Additionally, create a lifecycle policy that moves the previous version of an object to Glacier Deep Archive if not accessed within the last 15 days.
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.