diff --git a/terraform/environments/oasys-national-reporting/locals_defaults.tf b/terraform/environments/oasys-national-reporting/locals_defaults.tf index 570f944da72..e430d66f8c7 100644 --- a/terraform/environments/oasys-national-reporting/locals_defaults.tf +++ b/terraform/environments/oasys-national-reporting/locals_defaults.tf @@ -64,12 +64,16 @@ locals { }) # cloudwatch_metric_alarms = local.ec2_cloudwatch_metric_alarms.boe off for now tags = { - os-type = "Linux" - component = "onr_boe" + ami = "base_rhel_6_10" + os-type = "Linux" + component = "boe" + server-type = "onr-boe" } # FIXME: ebs_volumes list is NOT YET CORRECT and will need to change ebs_volumes = { "/dev/sda1" = { type = "gp3", size = 128 } # root volume + "/dev/sdb" = { type = "gp3", size = 128 } # /u01 + "/dev/sdc" = { type = "gp3", size = 128 } # /u02 } }) diff --git a/terraform/environments/oasys-national-reporting/locals_development.tf b/terraform/environments/oasys-national-reporting/locals_development.tf index fc382cc40fc..b2109a5f459 100644 --- a/terraform/environments/oasys-national-reporting/locals_development.tf +++ b/terraform/environments/oasys-national-reporting/locals_development.tf @@ -32,6 +32,26 @@ locals { # }) # }) # } + + baseline_ec2_autoscaling_groups = { + dev-boe-asg = merge(local.defaults_boe_ec2.config, { + config = merge(local.defaults_boe_ec2.config, { + availability_zone = "${local.region}a" + }) + instance = merge(local.defaults_boe_ec2.instance, { + instance_type = "t3.large" + }) + user_data_cloud_init = merge(module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_and_ansible, { + args = merge(module.baseline_presets.ec2_instance.user_data_cloud_init.ssm_agent_and_ansible.args, { + branch = "main" + }) + }) + autoscaling_group = merge(module.baseline_presets.ec2_autoscaling_group.default, { + desired_capacity = 0 + }) + autoscaling_schedules = module.baseline_presets.ec2_autoscaling_schedules.working_hours + }) + } } }