turbot/aws_insights

Query: cloudtrail_trail_encryption_table

Usage

powerpipe query aws_insights.query.cloudtrail_trail_encryption_table

SQL

select
t.name as "Name",
case
when t.kms_key_id is not null then 'Enabled'
else null
end as "Encryption",
a.title as "Account",
t.account_id as "Account ID",
t.region as "Region",
t.arn as "ARN"
from
aws_cloudtrail_trail as t,
aws_account as a
where
t.home_region = t.region
and t.account_id = a.account_id
order by
t.name;

Dashboards

The query is used in the dashboards: