mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user