This template creates an S3 bucket with a lifecycle configuration rule that transitions objects with the `glacier` key prefix to Glacier after one day and deletes them after one year.

CloudFormation Template