Skip to content

Commit

Permalink
oasys san test
Browse files Browse the repository at this point in the history
oasys san test
  • Loading branch information
wullub committed Jan 7, 2025
1 parent 47ad0dd commit d19770a
Showing 1 changed file with 30 additions and 1 deletion.
31 changes: 30 additions & 1 deletion terraform/environments/oasys/locals_test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,35 @@ locals {
oracle-db-sid = "T2OASYS2"
})
})
t2-oasys-san-web-a = merge(local.ec2_autoscaling_groups.web, {
# For SAN project (OASYS replacement) requested by Howard Smith
# Autoscaling disabled as initially server will be configured manually
config = merge(local.ec2_autoscaling_groups.web.config, {
ami_name = "oasys_webserver_release_*"
availability_zone = "eu-west-2a"
iam_resource_names_prefix = "ec2-web-t2"
instance_profile_policies = concat(local.ec2_autoscaling_groups.web.config.instance_profile_policies, [
"Ec2T2WebPolicy",
])
})
ebs_volumes = {
"/dev/sda1" = { snapshot_id = "snap-0eefca38cbebc9289" }
"/dev/sda2" = { snapshot_id = "snap-073b980c752b70d71" }
"/dev/sdb" = { snapshot_id = "snap-0ccf326230b3def99" }
"/dev/sdc" = { snapshot_id = "snap-05dcf8714290d64d1" }
}
user_data_cloud_init = merge(local.ec2_autoscaling_groups.web.user_data_cloud_init, {
args = merge(local.ec2_autoscaling_groups.web.user_data_cloud_init.args, {
branch = "main"
})
})
tags = merge(local.ec2_autoscaling_groups.web.tags, {
description = "t2 oasys web"
oasys-environment = "t2"
oracle-db-hostname = "db.t2.oasys.hmpps-test.modernisation-platform.internal"
oracle-db-sid = "T2OASYS2"
})
})
}

ec2_instances = {
Expand Down Expand Up @@ -512,4 +541,4 @@ locals {
"/oracle/database/T2BOAUD" = local.secretsmanager_secrets.db_bip
}
}
}
}

0 comments on commit d19770a

Please sign in to comment.