Skip to content

Commit

Permalink
Add DNS records for CSB documentation proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshochadel committed Dec 17, 2024
1 parent 31da695 commit e1a666f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions terraform/modules/environment_dns/dns.tf
Original file line number Diff line number Diff line change
Expand Up @@ -222,3 +222,19 @@ resource "aws_route53_record" "brokered_mail_ns" {
ttl = "30"
records = aws_route53_zone.brokered_mail_zone.name_servers
}

locals {
csb_docproxy_subdomain_name = "_acme-challenge.services.${var.domain}."
csb_docproxy_subdomain_value = "_acme-challenge.services.${var.domain}.external-domains-${var.stack_name}.${var.domain}."
}

// DNS records corresponding to the External Domain Service Instance
// provisioned for the Cloud Service Broker documentation proxy.
// Repo: https://github.com/cloud-gov/csb
resource "aws_route53_record" "csb_docproxy" {
name = local.csb_docproxy_subdomain_name
type = "CNAME"
zone_id = var.zone_id

records = [local.csb_docproxy_subdomain_value]
}

0 comments on commit e1a666f

Please sign in to comment.