Skip to content

Commit

Permalink
re-add
Browse files Browse the repository at this point in the history
  • Loading branch information
vertism committed Jan 29, 2024
1 parent c4f304e commit 5deff71
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions terraform/environments/cdpt-chaps/route53.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,18 @@ resource "aws_route53_record" "external_validation_subdomain" {
type = local.domain_type_sub[0]
zone_id = data.aws_route53_zone.external.zone_id
}

// Route53 DNS record for directing traffic to the service
resource "aws_route53_record" "external" {
provider = aws.core-vpc

zone_id = data.aws_route53_zone.external.zone_id
name = "${var.networking[0].application}.${var.networking[0].business-unit}-${local.environment}.modernisation-platform.service.justice.gov.uk"
type = "A"

alias {
name = aws_lb.chaps_lb.dns_name
zone_id = aws_lb.chaps_lb.zone_id
evaluate_target_health = true
}
}

0 comments on commit 5deff71

Please sign in to comment.