diff --git a/terraform/20-app/aurora-db.feature-flags.tf b/terraform/20-app/aurora-db.feature-flags.tf index d7603831..a63ba71c 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 deletion_protection = local.use_prod_sizing manage_master_user_password = true 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 = {