turbot/aws_insights

Query: cloudtrail_trails_for_s3_bucket

Usage

powerpipe query aws_insights.query.cloudtrail_trails_for_s3_bucket

SQL

select
distinct trail.arn as trail_arn
from
aws_cloudtrail_trail as trail,
aws_s3_bucket as b
where
b.arn = $1
and trail.s3_bucket_name = b.name;