turbot/aws_insights

Query: cloudtrail_trails_for_sns_topic

Usage

powerpipe query aws_insights.query.cloudtrail_trails_for_sns_topic

Steampipe Tables

SQL

select
arn as trail_arn
from
aws_cloudtrail_trail
where
sns_topic_arn = $1
and account_id = split_part($1, ':', 5)
and region = split_part($1, ':', 4);