Skip to content

Commit

Permalink
feat(aurora-postgres): allow additional cluster parameters (#1004)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevcube authored May 2, 2024
1 parent ca093aa commit 26c3a75
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/aurora-postgres/cluster-regional.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module "aurora_postgres_cluster" {
allow_major_version_upgrade = var.allow_major_version_upgrade
ca_cert_identifier = var.ca_cert_identifier

cluster_parameters = [
cluster_parameters = concat([
{
apply_method = "immediate"
name = "log_statement"
Expand All @@ -65,7 +65,7 @@ module "aurora_postgres_cluster" {
name = "log_min_duration_statement"
value = "0"
}
]
], var.cluster_parameters)

context = module.cluster.context
}
10 changes: 10 additions & 0 deletions modules/aurora-postgres/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -330,3 +330,13 @@ variable "intra_security_group_traffic_enabled" {
default = false
description = "Whether to allow traffic between resources inside the database's security group."
}

variable "cluster_parameters" {
type = list(object({
apply_method = string
name = string
value = string
}))
default = []
description = "List of DB cluster parameters to apply"
}

0 comments on commit 26c3a75

Please sign in to comment.