Skip to content

Commit

Permalink
remove prod alb
Browse files Browse the repository at this point in the history
  • Loading branch information
drobinson-moj committed Sep 4, 2024
1 parent 4db8e82 commit 65e5c50
Showing 1 changed file with 1 addition and 68 deletions.
69 changes: 1 addition & 68 deletions terraform/environments/planetfm/locals_production.tf
Original file line number Diff line number Diff line change
Expand Up @@ -308,81 +308,14 @@ locals {

listeners = {
https = merge(local.lbs.web.listeners.https, {
alarm_target_group_names = ["cafmwebx2-https"]
default_action = {
type = "forward"
target_group_name = "cafmwebx2-https"
}
})
}
})

private = merge(local.lbs.private, {
access_logs_lifecycle_rule = [module.baseline_presets.s3_lifecycle_rules.general_purpose_one_year]

instance_target_groups = {
web-3637-80 = merge(local.lbs.private.instance_target_groups.web-80, {
attachments = [
{ ec2_instance_name = "pd-cafm-w-36-b" },
{ ec2_instance_name = "pd-cafm-w-37-a" },
]
})
web-38-80 = merge(local.lbs.private.instance_target_groups.web-80, {
attachments = [
{ ec2_instance_name = "pd-cafm-w-38-b" },
]
})
}

listeners = merge(local.lbs.private.listeners, {
https = merge(local.lbs.private.listeners.https, {
alarm_target_group_names = [
"web-3637-80",
]

default_action = {
type = "redirect"
redirect = {
host = "cafmwebx2.planetfm.service.justice.gov.uk"
port = "443"
protocol = "HTTPS"
status_code = "HTTP_302"
}
}

rules = {
web-3637-80 = {
priority = 3637
actions = [{
type = "forward"
target_group_name = "web-3637-80"
}]
conditions = [{
host_header = {
values = [
"cafmwebx2.planetfm.service.justice.gov.uk",
]
}
}]
}
web-38-80 = {
priority = 3880
actions = [{
type = "forward"
target_group_name = "web-38-80"
}]
conditions = [{
host_header = {
values = [
"cafmtrainweb.planetfm.service.justice.gov.uk",
"cafmtrainweb.az.justice.gov.uk",
]
}
}]
}
}
})
})
})
}

route53_zones = {
Expand Down

0 comments on commit 65e5c50

Please sign in to comment.