compliance.tf

Cloud SQL PostgreSQL instances should have 'log_temp_files' set to '0'

Checks that Cloud SQL PostgreSQL instances have the `log_temp_files` database flag set to `0`. Temporary files are not logged by default, and setting `log_temp_files` to `0` makes the instance log all temporary files.

What this control checks

Cloud SQL PostgreSQL log_temp_files database flag must be set to 0.

Framework mappings

The clauses this control is mapped to in each framework.

CIS GCP Benchmark v1.2.0

  • 6.2.15 Ensure that the 'log_temp_files' database flag for Cloud SQL PostgreSQL instance is set to '0'

Tool mappings

Use these identifiers to cross-reference this control across tools, reports, and evidence.

  • Compliance.tf Control: sql_instance_postgresql_log_temp_files_database_flag_0
  • Powerpipe Control: gcp_compliance.control.sql_instance_postgresql_log_temp_files_database_flag_0
  • Trivy Check: GCP-0014

Last reviewed: 2026-10-10

View all Google Cloud controls →

On this page

Ask AI about this

Help improve this page