This section introduces the process of configuring lifecycle rules based on a couple of scenarios and how the rules work checking the storage class with AWS CLI.
You do not have to request permissions to configure the lifecycle policy over your bucket. All you need to do is:
To enable the lifecycle of objects, you need to create a lifecycle policy, specify where to apply the whole bucket (or a specific prefix) and the lifetime (in days). We will configure a lifecycle policy with the following parameters:
Apply the Rule to (Where):
logs/
Permanently Delete (Lifetime):
1
dayRule Name (Optional):
del_logs
Next, let's create the lifecycle policy, configure it to the bucket, and then verify that the policy is configured to the bucket through the S3 console:
First, sign in to the AWS management console and...