Control: GCP SQL PostgreSQL instance should log SQL statements
Description
This control checks whether the log_statement database flag for Cloud SQL PostgreSQL instance is set to log SQL statements.
Usage
Run the control in your terminal:
powerpipe control run terraform_gcp_compliance.control.sql_instance_postgresql_log_statement_flag_set
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run terraform_gcp_compliance.control.sql_instance_postgresql_log_statement_flag_set --share
SQL
This control uses a named query:
sql_instance_postgresql_log_statement_flag_set