diff --git a/modules/aws-rds-aurora/sql-server.tf b/modules/aws-rds-aurora/sql-server.tf index 7c4ad6d..d536e1a 100644 --- a/modules/aws-rds-aurora/sql-server.tf +++ b/modules/aws-rds-aurora/sql-server.tf @@ -270,8 +270,9 @@ resource "aws_db_parameter_group" "sql_server" { dynamic "parameter" { for_each = var.enable_custom_parameter_group ? var.parameter_group : [] content { - name = parameter.value.parameter_name - value = parameter.value.parameter_value + name = parameter.value.parameter_name + value = parameter.value.parameter_value + apply_method = parameter.value.parameter_apply_method } } } diff --git a/modules/aws-rds-aurora/variables.tf b/modules/aws-rds-aurora/variables.tf index 53549ca..2f41b1b 100644 --- a/modules/aws-rds-aurora/variables.tf +++ b/modules/aws-rds-aurora/variables.tf @@ -552,8 +552,9 @@ variable "option_group" { variable "parameter_group" { type = list(object({ - parameter_name = string - parameter_value = any + parameter_name = string + parameter_value = any + parameter_apply_method = string })) } @@ -785,4 +786,4 @@ variable "kms_multi_region" { description = "Determine whether the KMS key is multi region support" type = bool default = false -} \ No newline at end of file +}