turbot/aws_compliance

Query: rds_db_instance_and_cluster_enhanced_monitoring_enabled

Usage

powerpipe query aws_compliance.query.rds_db_instance_and_cluster_enhanced_monitoring_enabled

SQL

(
select
arn as resource,
case
when enabled_cloudwatch_logs_exports is not null then 'ok'
else 'alarm'
end as status,
case
when enabled_cloudwatch_logs_exports is not null then title || ' enhanced monitoring enabled.'
else title || ' enhanced monitoring not enabled.'
end as reason
, region, account_id
from
aws_rds_db_cluster
)
union
(
select
arn as resource,
case
when class = 'db.m1.small' then 'skip'
when enhanced_monitoring_resource_arn is not null then 'ok'
else 'alarm'
end as status,
case
when class = 'db.m1.small' then title || ' enhanced monitoring not supported.'
when enhanced_monitoring_resource_arn is not null then title || ' enhanced monitoring enabled.'
else title || ' enhanced monitoring not enabled.'
end as reason
, region, account_id
from
aws_rds_db_instance
);

Controls

The query is being used by the following controls: