awslabs / aws-config-rules

[Node, Python, Java] Repository of sample Custom Rules for AWS Config.
http://aws.amazon.com/config/
Creative Commons Zero v1.0 Universal
1.58k stars 851 forks source link

cloudtrail-enabled managed rule evaluates at a regional level #391

Open misraved opened 1 year ago

misraved commented 1 year ago

As per the documentation, the cloudtrail-enabled managed rule evaluates trails as per the following statement -

Checks if AWS CloudTrail is enabled in your AWS account. Optionally, you can specify which S3 bucket, SNS topic, and AWS CloudTrail ARN to use. The rule is NON_COMPLIANT if AWS CloudTrail is not enabled.

However, if I create a single trail in the us-east-1 region, and create a config rule to evaluate cloudtrail-enabled rule in the us-east-2 region, the rule evaluates it to Noncompliant.

Shouldn't the description be updated to say that the rule is looking for trails(or multi-region trails) in all the regions? Is my understanding correct or am I missing something?