<Rule>...</Rule>.
This section includes all the settings below.<ID>...</ID>.
Specify a unique identifier for the rule. The ID can be up to 255 characters long and include numbers, Latin letters, and underscores.<Prefix/>.
Leave the tag empty if you want to apply the rule to the entire bucket or specify the folder’s name.<Status>...</Status>.
Specify either “Enabled” or “Disabled”. If a rule is in the “Disabled” status, no actions specified in the rule will be performed.<Expiration><Days>...</Days></Expiration>.
Specify the days you want the object to be kept in your bucket in the “Expiration” section.ID
is one_day
.<Prefix/>
).Enabled
)."Prefix": ""
) applies the Lifecycle Configuration to the entire bucket. Specify the folder name if you need to apply the policy to a specific folder in the bucket. For example, if the objects are in the deleteme
folder, the value will be "Prefix": "deleteme /"
.
3. Save the file as lifecycle.json.
4. Start the AWS CLI from the directory with the lifecycle.json file and run the following command:
my_bucket
name in the example with your bucket name.https://s-ed1.cloud.gcore.lu
with your storage endpoint. To choose the correct value for this parameter, use the “S3 service URLs and default region names” guide.my_bucket
name in the example with your bucket name.https://s-ed1.cloud.gcore.lu
with your storage endpoint. To choose the correct value for this parameter, use the “S3 service URLs and default region names” guide.my_bucket
name in the example with your bucket name.https://s-ed1.cloud.gcore.lu
with your storage endpoint. To choose the correct value for this parameter, use the “S3 service URLs and default region names” guide.