turbot/aws_compliance

Query: docdb_cluster_instance_logging_enabled

Usage

powerpipe query aws_compliance.query.docdb_cluster_instance_logging_enabled

SQL

select
db_instance_arn as resource,
engine,
case
when engine like 'docdb' and enabled_cloudwatch_logs_exports ?& array ['error', 'slowquery'] then 'ok'
else 'alarm'
end as status,
case
when engine like 'docdb' and enabled_cloudwatch_logs_exports ?& array ['error', 'slowquery']
then title || ' ' || engine || ' logging enabled.'
else title || ' logging not enabled.'
end as reason
, region, account_id
from
aws_docdb_cluster_instance;

Controls

The query is being used by the following controls: