turbot/aws_compliance

Query: cloudtrail_trail_integrated_with_logs

Usage

powerpipe query aws_compliance.query.cloudtrail_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 || ' integrated with CloudWatch logs.'
else title || ' not integrated with CloudWatch logs.'
end as reason
, region, account_id
from
aws_cloudtrail_trail
where
region = home_region;

Controls

The query is being used by the following controls: