turbot/steampipe-mod-aws-compliance

Query: datasync_task_logging_enabled

Usage

powerpipe query aws_compliance.query.datasync_task_logging_enabled

Steampipe Tables

SQL

select
arn as resource,
case
when cloud_watch_log_group_arn is not null and options ->> 'LogLevel' in ('BASIC', 'TRANSFER') then 'ok'
else 'alarm'
end as status,
case
when cloud_watch_log_group_arn is not null and options ->> 'LogLevel' in ('BASIC', 'TRANSFER') then title || ' ' || (options ->> 'LogLevel') || ' level logging enabled.'
else title || ' logging disabled.'
end as reason
, region, account_id
from
aws_datasync_task;

Controls

The query is being used by the following controls: