Skip to content

Commit

Permalink
BAH-3902 | Add new custom parameter group for MySQL 8
Browse files Browse the repository at this point in the history
  • Loading branch information
mohan-13 committed Jun 12, 2024
1 parent d8c54c4 commit 3ca2bc2
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions terraform/modules/rds/rds_parameter_group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,29 @@ resource "aws_db_parameter_group" "custom_mysql_parameters" {
value = var.mysql_time_zone
}
}

resource "aws_db_parameter_group" "custom_mysql8_0_parameters" {
name = "mysql8-0-custom-parameter-group-${var.environment}"
family = "mysql8.0"

parameter {
name = "log_bin_trust_function_creators"
value = 1
apply_method = "immediate"
}

parameter {
name = "character_set_server"
value = "utf8mb4"
}

parameter {
name = "collation_server"
value = "utf8mb4_0900_ai_ci"
}

parameter {
name = "time_zone"
value = var.mysql_time_zone
}
}

0 comments on commit 3ca2bc2

Please sign in to comment.