turbot/steampipe-mod-aws-compliance

Control: RDS DB instances should be integrated with CloudWatch logs

Description

Use AWS CloudWatch to centrally collect and manage RDS DB instance activity.

Usage

Run the control in your terminal:

powerpipe control run aws_compliance.control.rds_db_instance_cloudwatch_logs_enabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run aws_compliance.control.rds_db_instance_cloudwatch_logs_enabled --share

SQL

This control uses a named query:

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 || ' integrated with CloudWatch logs.'
else title || ' not integrated with CloudWatch logs.'
end as reason
, region, account_id
from
aws_rds_db_instance;

Tags