Using V2 CloudFront Logs via CloudFormation

CloudFront supports two logging modes: v2 logging and legacy logging . Naturally, you&rsquo;d expect to use the newer v2 logging—but if you&rsquo;re provisioning CloudFront with CloudFormation, it&rsquo;s easy to end up with the legacy setup by accident. If you use the Logging property in your AWS::CloudFront::Distribution , CloudFormation will default to legacy logging , writing directly to S3.…