terraform-google-modules / terraform-google-sql-db

Creates a Cloud SQL database instance
https://registry.terraform.io/modules/terraform-google-modules/sql-db/google
Apache License 2.0
266 stars 425 forks source link

Missing config for settings.sql_server_audit_config #666

Open Samuel-M-H opened 3 weeks ago

Samuel-M-H commented 3 weeks ago

TL;DR

I am using the TF module and would like to configure the settings.sql_server_audit_config option. The issue is that it is currently not available as a configurable variable. This can be easily done with Dynamics, similar to the configuration of Query Insights.

Terraform Resources

https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/sql_database_instance

Detailed design

Configuring these variables is quite straightforward, and I have a preliminary setup in my local environment. It involves adding an additional block to the google_sql_database_instance resource using dynamic for the configuration of settings.sql_server_audit_config. Additionally, we should include a block in variables.tf to configure bucket, upload_interval, and retention_interval. These variables can default to null for those who do not require the sql_server_audit_config feature.

Additional information

No response

benjamingorcor commented 3 weeks ago

i have the same problem