compliance.tf

Cloud SQL PostgreSQL instances should have 'log_lock_waits' set to 'on'

This control inspects Cloud SQL PostgreSQL instances and requires the `log_lock_waits` database flag to be set to `on`. The check applies to the database flag configuration of each Cloud SQL PostgreSQL instance and looks at the value set for `log_lock_waits`.

What this control checks

Cloud SQL PostgreSQL instances must have the log_lock_waits database flag set to on

Framework mappings

The clauses this control is mapped to in each framework.

CIS GCP Benchmark v1.2.0

  • 6.2.6 Ensure that the 'log_lock_waits' database flag for Cloud SQL PostgreSQL instance is set to 'on'

Tool mappings

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

  • Compliance.tf Control: sql_instance_postgresql_log_lock_waits_database_flag_on
  • Checkov Check: CKV_GCP_54
  • Powerpipe Control: gcp_compliance.control.sql_instance_postgresql_log_lock_waits_database_flag_on
  • Trivy Check: GCP-0020

Last reviewed: 2026-10-10

View all Google Cloud controls →

On this page

Ask AI about this

Help improve this page