Description
This policy checks if standard logging is enabled for AWS CloudFront Distributions.
Standard logging supports:
- Delivery of access logs to Amazon CloudWatch Logs, Amazon Kinesis Data Firehose, and Amazon S3.
- Selection of specific log fields, including a subset of realβtime log fields.
- Configuration of additional output log file formats.
Rationaleβ
Standard logs provide details for each distribution request (e.g., the viewerβs IP address, requested path and object, HTTP status code and method, timestamp, and user agent) enabling monitoring, troubleshooting, and security auditing.
Impactβ
Enabling standard logging may increase charges for log storage and data transfer.
Auditβ
This policy flags an AWS CloudFront Web Distribution as INCOMPLIANT
if the Logging Enabled
checkbox is false.