This check ensures that logging is enabled for AWS CloudTrail by verifying that the enable_logging attribute is set to true in the resource configuration. Disabling logging (enable_logging = false) prevents the capture of API activity in your AWS account, which can hinder threat detection, audit investigations, and incident response efforts. For security and compliance, CloudTrail logging should always be enabled, as shown below:
#this is a problematic code where the query should report a result(s)
resource"aws_cloudtrail""positive1"{name="positive"s3_bucket_name="bucketlog"enable_logging=false}
1
2
rulesets:- Terraform / AWS # Rules to enforce / AWS.
個別デモのリクエスト
Datadogを開始
Ask AI
AI-generated responses may be inaccurate. Verify important info.