turbot/steampipe-mod-aws-compliance

Query: rds_db_cluster_aurora_postgres_logging_enabled

Usage

powerpipe query aws_compliance.query.rds_db_cluster_aurora_postgres_logging_enabled

Steampipe Tables

SQL

select
arn as resource,
case
when engine <> 'aurora-postgresql' then 'skip'
when enabled_cloudwatch_logs_exports ?& array ['postgresql'] then 'ok'
else 'alarm'
end as status,
case
when engine <> 'aurora-postgresql' then title || ' is of ' || engine || ' type.'
when enabled_cloudwatch_logs_exports ?& array ['postgresql'] then title || ' logging enabled.'
else title || ' logging disabled.'
end as reason
, region, account_id
from
aws_rds_db_cluster;

Controls

The query is being used by the following controls: