Skip to content

Commit

Permalink
fix: Fix database instance flag (#183)
Browse files Browse the repository at this point in the history
* fix: Fix database instance flag

* Fix lint
  • Loading branch information
flamarion authored Dec 2, 2024
1 parent 5ef4e53 commit a9329dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
18 changes: 9 additions & 9 deletions modules/database/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ data "google_project" "default" {

locals {
default_flags = {
"binlog_row_image" = "MINIMAL"
"binlog_row_value_options" = "PARTIAL_JSON"
"innodb_autoinc_lock_mode" = "2"
"innodb_lru_scan_depth" = "100"
"binlog_row_image" = "minimal"
"binlog_row_value_options" = "PARTIAL_JSON"
"innodb_autoinc_lock_mode" = "2"
"innodb_lru_scan_depth" = "100"
"innodb_print_all_deadlocks" = "off"
"long_query_time" = "1"
"max_prepared_stmt_count" = "1048576"
"max_execution_time" = "60000"
"slow_query_log" = "on"
"sort_buffer_size" = var.sort_buffer_size
"long_query_time" = "1"
"max_prepared_stmt_count" = "1048576"
"max_execution_time" = "60000"
"slow_query_log" = "on"
"sort_buffer_size" = var.sort_buffer_size
}
database_flags = merge(local.default_flags, var.database_flags)
}
Expand Down
6 changes: 3 additions & 3 deletions modules/database/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ variable "database_version" {
}

variable "database_flags" {
description = "Flags to set for the database"
type = map(string)
default = {}
description = "Flags to set for the database"
type = map(string)
default = {}
}

variable "sort_buffer_size" {
Expand Down

0 comments on commit a9329dd

Please sign in to comment.