chore(infra): Enable pgaudit on master instance (#8434)

This is [step
1](https://cloud.google.com/sql/docs/postgres/pg-audit#set-pgaudit-flag-values)
of enabling `pgaudit` logs. We'll also need to `CREATE EXTENSION` which
will need to happen in a migration. I'll make a separate PR for that.

Supersedes: #5442
This commit is contained in:
Jamil
2025-03-14 15:14:23 -05:00
committed by GitHub
parent 7df1bf2718
commit 09fb5f9274

View File

@@ -126,6 +126,16 @@ resource "google_sql_database_instance" "master" {
name = "cloudsql.iam_authentication"
value = "on"
}
database_flags {
name = "cloudsql.enable_pgaudit"
value = "on"
}
database_flags {
name = "pgaudit.log"
value = "all"
}
}
lifecycle {