From 07c87eb445264594b33b3f56d3c8a743b4dc9331 Mon Sep 17 00:00:00 2001 From: Ian Howell Date: Thu, 16 May 2024 17:37:26 +0100 Subject: [PATCH] Add Postgres RDS DB for Chat App to Production Environment modified: variables-production.tf --- .../tfc-configuration/variables-production.tf | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/terraform/deployments/tfc-configuration/variables-production.tf b/terraform/deployments/tfc-configuration/variables-production.tf index cc41b078a..9612ceb34 100644 --- a/terraform/deployments/tfc-configuration/variables-production.tf +++ b/terraform/deployments/tfc-configuration/variables-production.tf @@ -136,6 +136,23 @@ module "variable-set-rds-production" { freestoragespace_threshold = 10737418240 } + chat = { + engine = "postgres" + engine_version = "16" + engine_params = { + log_min_duration_statement = { value = 10000 } + log_statement = { value = "all" } + deadlock_timeout = { value = 2500 } + log_lock_waits = { value = 1 } + } + engine_params_family = "postgres16" + name = "chat" + allocated_storage = 100 + instance_class = "db.t4g.small" + performance_insights_enabled = false + freestoragespace_threshold = 10737418240 + } + ckan = { engine = "postgres" engine_version = "13"