turbot/alicloud_compliance

Query: action_trail_enabled

Usage

powerpipe query alicloud_compliance.query.action_trail_enabled

Steampipe Tables

SQL

select
'acs:actiontrail:' || home_region || ':' || account_id || ':actiontrail/' || name as resource,
case
when
trail_region = 'All'
and oss_bucket_name is not null
and sls_project_arn is not null then 'ok'
else 'alarm'
end as status,
case
when
trail_region = 'All'
and oss_bucket_name is not null
and sls_project_arn is not null then name ' is configured to export copies of all log entries'
else name ' is not configured to export copies of all log entries'
end as reason
, account_id as account_id, region as region
from
alicloud_action_trail;

Controls

The query is being used by the following controls: