S3 bucket server access logging should be enabled
Severity: Medium
Resource Types: AWS::S3::Bucket
Description
When logging is enabled, Amazon S3 delivers access logs for a source bucket to a chosen target bucket. The target bucket must be in the same AWS Region as the source bucket and must not have a default retention period configuration. The target logging bucket does not need to have logging enabled. This control passes if Server access logging is enabled.
Server access logging provides detailed records of requests made to a bucket. Server access logs can assist in security and access audits. For more information, see Security Best Practices for Amazon S3: Enable Amazon S3 server access logging.
Remediation
To enable S3 bucket access logging
- Sign in to the AWS Management Console and open the Amazon S3 console.
- Choose the bucket used for CloudTrail.
- Choose
Properties
. - Choose
Server access logging
, then selectEdit
. - Under
Server access logging
chooseEnable
then chooseSave changes
.