Skip to content

Commit

Permalink
Update locals_test.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
wullub committed Jan 7, 2025
1 parent 01feecc commit 057c11c
Showing 1 changed file with 60 additions and 60 deletions.
120 changes: 60 additions & 60 deletions terraform/environments/oasys/locals_test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -111,34 +111,34 @@ locals {
oracle-db-sid = "T2OASYS2"
})
})
t2-oasys-web-c = merge(local.ec2_autoscaling_groups.web, {
# For SAN project (OASYS replacement) requested by Howard Smith
autoscaling_group = merge(local.ec2_autoscaling_groups.web.autoscaling_group, {
warm_pool = {
min_size = 0
reuse_on_scale_in = true
}
})
config = merge(local.ec2_autoscaling_groups.web.config, {
ami_name = "oasys_webserver_release_*"
availability_zone = "eu-west-2b"
iam_resource_names_prefix = "ec2-web-t2"
instance_profile_policies = concat(local.ec2_autoscaling_groups.web.config.instance_profile_policies, [
"Ec2T2WebPolicy",
])
})
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"
})
})
# t2-oasys-web-c = merge(local.ec2_autoscaling_groups.web, {
# # For SAN project (OASYS replacement) requested by Howard Smith
# autoscaling_group = merge(local.ec2_autoscaling_groups.web.autoscaling_group, {
# warm_pool = {
# min_size = 0
# reuse_on_scale_in = true
# }
# })
# config = merge(local.ec2_autoscaling_groups.web.config, {
# ami_name = "oasys_webserver_release_*"
# availability_zone = "eu-west-2b"
# iam_resource_names_prefix = "ec2-web-t2"
# instance_profile_policies = concat(local.ec2_autoscaling_groups.web.config.instance_profile_policies, [
# "Ec2T2WebPolicy",
# ])
# })
# 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"
# })
# })
# 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
Expand Down Expand Up @@ -440,22 +440,22 @@ locals {
}
]
}
t2-web-c-http-8080 = {
priority = 160
actions = [{
type = "forward"
target_group_name = "t2-oasys-web-c-pb-http-8080"
}]
conditions = [
{
host_header = {
values = [
"t2-c.oasys.service.justice.gov.uk",
]
}
}
]
}
# t2-web-c-http-8080 = {
# priority = 160
# actions = [{
# type = "forward"
# target_group_name = "t2-oasys-web-c-pb-http-8080"
# }]
# conditions = [
# {
# host_header = {
# values = [
# "t2-c.oasys.service.justice.gov.uk",
# ]
# }
# }
# ]
# }
t1-web-http-8080 = {
priority = 300
actions = [{
Expand Down Expand Up @@ -519,22 +519,22 @@ locals {
}
]
}
t2-web-c-http-8080 = {
priority = 160
actions = [{
type = "forward"
target_group_name = "t2-oasys-web-c-pv-http-8080"
}]
conditions = [
{
host_header = {
values = [
"t2-c-int.oasys.service.justice.gov.uk",
]
}
}
]
}
# t2-web-c-http-8080 = {
# priority = 160
# actions = [{
# type = "forward"
# target_group_name = "t2-oasys-web-c-pv-http-8080"
# }]
# conditions = [
# {
# host_header = {
# values = [
# "t2-c-int.oasys.service.justice.gov.uk",
# ]
# }
# }
# ]
# }
t1-web-http-8080 = {
priority = 300
actions = [{
Expand Down

0 comments on commit 057c11c

Please sign in to comment.