Skip to main content

Posts

Showing posts with the label Lifecycle Policy

How To Create a Lifecycle Policy for an S3 Bucket?

Why need lifecycle policies? You can use lifecycle policies to define actions you want Amazon S3 to take during an object's lifetime (for example, transition objects to another storage class, archive them, or delete them after a specified period of time). You can define a lifecycle policy for all objects or a subset of objects in the bucket by using a shared prefix (that is, objects that have names that begin with a common string). A versioning-enabled bucket can have many versions of the same object, one current version and zero or more noncurrent (previous) versions. Using a lifecycle policy, you can define actions specific to current and noncurrent object versions.  To create a lifecycle policy 1. Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/ .  2. In the  Bucket name  list, choose the name of the bucket that you want to create a lifecycle policy for.  3. Choose the  M...