Skip to content

Commit

Permalink
Made changes again
Browse files Browse the repository at this point in the history
  • Loading branch information
fshafaatmoj committed Feb 8, 2024
1 parent d096206 commit 90bf7f6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
13 changes: 0 additions & 13 deletions terraform/environments/cdpt-chaps/loadbalancer.tf
Original file line number Diff line number Diff line change
Expand Up @@ -63,16 +63,3 @@ resource "aws_lb_listener" "https_listener" {
}
}

# This will build on the core-vpc development account under platforms-development.modernisation-platform.service.justice.gov.uk, and route traffic back to example LB
resource "aws_route53_record" "external_prod" {
provider = aws.core-vpc
zone_id = data.aws_route53_zone.external.zone_id
name = "${local.environment}.correspondence-handling-and-processing.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
}
}
16 changes: 16 additions & 0 deletions terraform/environments/cdpt-chaps/route53.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ resource "aws_acm_certificate_validation" "external" {
validation_record_fqdns = [local.domain_name_main[0], local.domain_name_sub[0]]
}


// Route53 DNS records for certificate validation
resource "aws_route53_record" "external_validation" {
provider = aws.core-network-services
Expand Down Expand Up @@ -95,6 +96,21 @@ resource "aws_route53_record" "external_validation_prod" {
ttl = 60
}

# This will build on the core-vpc development account under platforms-development.modernisation-platform.service.justice.gov.uk, and route traffic back to example LB
resource "aws_route53_record" "external_prod" {
provider = aws.core-vpc
zone_id = data.aws_route53_zone.external_prod.zone_id
name = "${local.environment}.correspondence-handling-and-processing.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
}
}


// Route53 DNS record for directing traffic to the service
//resource "aws_route53_record" "external_prod" {
// count = local.is-production ? 1 : 0
Expand Down

0 comments on commit 90bf7f6

Please sign in to comment.