Skip to content

Commit

Permalink
Merge branch 'main' into feature/apply-default-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
samidbb committed Dec 14, 2023
2 parents 7942957 + 75e2429 commit 59c3af5
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,24 @@ locals {
create_db_parameter_group = true
parameter_group_family = data.aws_rds_engine_version.engine_info.parameter_group_family

prod_instance_parameters = var.environment == "prod" ? [
{
name = "log_connections"
value = 1
apply_method = "immediate"
}
] : []

instance_parameters = concat([
{
"name" = "rds.force_ssl"
"value" = 1 # this might need to be changed back and forth to ensure apply_method is applied. See here: https://github.com/hashicorp/terraform-provider-aws/pull/24737
"apply_method" = "immediate"
}]
, var.instance_parameters)
name = "rds.force_ssl"
value = 1 # this might need to be changed back and forth to ensure apply_method is applied. See here: https://github.com/hashicorp/terraform-provider-aws/pull/24737
apply_method = "immediate"
}
],
var.instance_parameters,
local.prod_instance_parameters
)

cluster_parameters = concat([
{
Expand Down

0 comments on commit 59c3af5

Please sign in to comment.