Creating a Basic Amazon S3 Lifecycle Policy

30 minutes
  • 2 Learning Objectives

About this Hands-on Lab

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](

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

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.

Additional Resources

Use the provided credentials to log in to the AWS Management Console.

Make sure you are in the us-east-1 region throughout the lab.

Here's where to download the image you'll need when we upload an object.

What are Hands-on Labs

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.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?