This template creates two S3 buckets. The `LoggingBucket` bucket stores the logs from the `S3Bucket` bucket. The `S3Bucket` bucket has a logging configuration that sends logs to the `LoggingBucket` bucket.

CloudFormation Template