turbot/aws_compliance

Query: cloudtrail_multi_region_trail_integrated_with_logs

Usage

powerpipe query aws_compliance.query.cloudtrail_multi_region_trail_integrated_with_logs

Steampipe Tables

SQL

select
arn as resource,
case
when log_group_arn != 'null'
and ((latest_delivery_time) > current_date - 1) then 'ok'
else 'alarm'
end as status,
case
when log_group_arn != 'null'
and ((latest_delivery_time) > current_date - 1) then title || ' multi region trail integrated with CloudWatch logs.'
else title || ' multi region trail not integrated with CloudWatch logs.'
end as reason,
region,
account_id
from
aws_cloudtrail_trail
where
region = home_region
and is_multi_region_trail;

Controls

The query is being used by the following controls: