From d0b284d2245f44a36b867ebe593c58af829b1867 Mon Sep 17 00:00:00 2001 From: W Date: Fri, 19 Jan 2024 17:11:20 +0000 Subject: [PATCH] dsos-1718/oasys pp bip up dsos-1718/oasys pp bip up --- terraform/environments/oasys/locals.tf | 4 ++-- .../environments/oasys/locals_preproduction.tf | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/terraform/environments/oasys/locals.tf b/terraform/environments/oasys/locals.tf index 390f700eb00..c3f6cc06c47 100644 --- a/terraform/environments/oasys/locals.tf +++ b/terraform/environments/oasys/locals.tf @@ -266,8 +266,8 @@ locals { user_data_cloud_init = module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_ansible_no_tags autoscaling_schedules = module.baseline_presets.ec2_autoscaling_schedules.working_hours autoscaling_group = merge(module.baseline_presets.ec2_autoscaling_group.default, { - desired_capacity = 2 - max_size = 2 + desired_capacity = 1 + max_size = 1 }) lb_target_groups = {} secretsmanager_secrets = {} diff --git a/terraform/environments/oasys/locals_preproduction.tf b/terraform/environments/oasys/locals_preproduction.tf index d82c5223d43..fa7b7aa11e9 100644 --- a/terraform/environments/oasys/locals_preproduction.tf +++ b/terraform/environments/oasys/locals_preproduction.tf @@ -113,6 +113,20 @@ locals { oracle-sids = "PPBIPINF PPOASYS" }) }) + + "pp-${local.application_name}-bip-a" = merge(local.bip_a, { + config = merge(local.bip_a.config, { + instance_profile_policies = concat(local.bip_a.config.instance_profile_policies, [ + "Ec2PreprodBipPolicy", + ]) + }) + tags = merge(local.bip_a.tags, { + bip-db-name = "PPBIPINF" + bip-db-hostname = "pp-oasys-db-a" + oasys-db-name = "PPOASYS" + oasys-db-hostname = "pp-oasys-db-a" + }) + }) } baseline_ec2_autoscaling_groups = {