From f5e13ff3c6ff40a0f123334c036a856ca1f76154 Mon Sep 17 00:00:00 2001 From: A-Ashiq Date: Wed, 11 Dec 2024 09:00:44 +0000 Subject: [PATCH 1/2] Set to be accessible in dev environments only --- terraform/20-app/aurora-db.feature-flags.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform/20-app/aurora-db.feature-flags.tf b/terraform/20-app/aurora-db.feature-flags.tf index 0365dea3..ea879648 100644 --- a/terraform/20-app/aurora-db.feature-flags.tf +++ b/terraform/20-app/aurora-db.feature-flags.tf @@ -8,7 +8,7 @@ module "aurora_db_feature_flags" { engine_version = "15.5" storage_encrypted = true - publicly_accessible = true + publicly_accessible = local.enable_public_db manage_master_user_password = true database_name = "unleash" From e6bc30c3920965aca5ac8e6c1e8cd8d7458ef5fc Mon Sep 17 00:00:00 2001 From: A-Ashiq Date: Wed, 11 Dec 2024 10:13:42 +0000 Subject: [PATCH 2/2] Simplify scheduled policy for non-essential envs overnight shutdown of ECS services --- terraform/20-app/locals.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/20-app/locals.tf b/terraform/20-app/locals.tf index 90777480..d23dd0eb 100644 --- a/terraform/20-app/locals.tf +++ b/terraform/20-app/locals.tf @@ -33,8 +33,8 @@ locals { scheduled_scaling_policies_for_non_essential_envs = { start_of_working_day_scale_out = { - min_capacity = local.use_prod_sizing ? 3 : 1 - max_capacity = local.use_prod_sizing ? 3 : 1 + min_capacity = 1 + max_capacity = 1 schedule = "cron(0 07 ? * MON-FRI *)" # Run every weekday at 7am } end_of_working_day_scale_in = {