This template creates a log group that retains events for 7 days and is encrypted with a new KMS key that is created in the template.