turbot/alicloud_compliance
GitHub

Query: rds_instance_sql_audit_enabled

Usage

steampipe query alicloud_compliance.query.rds_instance_sql_audit_enabled

Plugins & Tables

SQL

select
arn as resource,
case
when sql_collector_policy ->> 'SQLCollectorStatus' = 'Enable' then 'ok'
else 'alarm'
end as status,
case
when sql_collector_policy ->> 'SQLCollectorStatus' = 'Enable' then title || ' SQL audit enabled.'
else title || ' SQL audit disabled.'
end as reason,
account_id as account_id,
region as region
from
alicloud_rds_instance;

Controls

The query is being used by the following controls: