turbot/aws_insights

Query: cloudtrail_trails_for_cloudwatch_log_group

Usage

powerpipe query aws_insights.query.cloudtrail_trails_for_cloudwatch_log_group

Steampipe Tables

SQL

select
arn as cloudtrail_trail_arn
from
aws_cloudtrail_trail
where
log_group_arn is not null
and log_group_arn = $1
and region = split_part($1, ':', 4)
and account_id = split_part($1, ':', 5);