Control: MySql Instances should have binary log enabled
Description
This controls ensures that MySql instance have binary log enabled.
Usage
Run the control in your terminal:
powerpipe control run gcp_compliance.control.sql_instance_mysql_binary_log_enabled
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_compliance.control.sql_instance_mysql_binary_log_enabled --share
SQL
This control uses a named query:
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 projectfrom gcp_sql_database_instance;