Skip to content

AWS CloudTrail logging is disabled

Description

It is recommended to have a proper logging process for AWS CloudTrail in order to track configuration changes conducted manually and programmatically and trace back unapproved changes.

Code Example

go
resource "aws_cloudtrail" "pass" {
  name                          = "TRAIL"
  s3_bucket_name                = aws_s3_bucket.test.id
  include_global_service_events = true
  enable_logging = true
  kms_key_id                    = aws_kms_key.test.arn
}

Remediation

Terraform

Rule Details

FieldValue
IDIAC-0299
SeverityINFO
IaC TypeTerraform
FrameworksTerraform
Checkov IDCKV_AWS_251

References