From 3ca2bc26b5873076c957bdf38a68e4a9fa302460 Mon Sep 17 00:00:00 2001 From: MOHANKUMAR T Date: Wed, 12 Jun 2024 13:55:25 +0530 Subject: [PATCH] BAH-3902 | Add new custom parameter group for MySQL 8 --- terraform/modules/rds/rds_parameter_group.tf | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/terraform/modules/rds/rds_parameter_group.tf b/terraform/modules/rds/rds_parameter_group.tf index 15b3f84..bac5f87 100644 --- a/terraform/modules/rds/rds_parameter_group.tf +++ b/terraform/modules/rds/rds_parameter_group.tf @@ -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 + } +} \ No newline at end of file