turbot/gcp_compliance

Query: sql_instance_mysql_binary_log_enabled

Usage

powerpipe query gcp_compliance.query.sql_instance_mysql_binary_log_enabled

SQL

select
self_link resource,
case
when database_version not like 'MYSQL%' then 'skip'
when binary_log_enabled then 'ok'
else 'alarm'
end as status,
case
when database_version not like 'MYSQL%' then title || ' not a MySQL database.'
when binary_log_enabled then title || ' binary log enabled.'
else title || ' binary log disabled.'
end as reason,
location as location,
project as project
from
gcp_sql_database_instance;

Controls

The query is being used by the following controls: