Skip to content

Commit

Permalink
LPAL-1282 Re-add non-www DNS record (#1796)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Ainsworth authored Jan 30, 2024
1 parent 0546d46 commit f2ade33
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions terraform/environment/modules/dns/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@ resource "aws_route53_record" "public_facing_lastingpowerofattorney" {
}
}

# URL for the LPA Service without the www. subdomain. Redirected to the www. subdomain on front LB.
resource "aws_route53_record" "public_facing_lastingpowerofattorney_redirect" {
count = var.environment_name == "production" ? 1 : 0
provider = aws.management
zone_id = data.aws_route53_zone.live_service_lasting_power_of_attorney.zone_id
name = data.aws_route53_zone.live_service_lasting_power_of_attorney.name
type = "A"
allow_overwrite = true
alias {
evaluate_target_health = false
name = var.front_dns_name
zone_id = var.front_zone_id
}

lifecycle {
create_before_destroy = true
}
}

//-------------------------------------------------------------
// front
Expand Down

0 comments on commit f2ade33

Please sign in to comment.