Skip to content

Commit

Permalink
Merge pull request #860 from IntersectMBO/849-subdomains
Browse files Browse the repository at this point in the history
[#849] Configure sanchogov.tools sub-domain for the analytics service
  • Loading branch information
placek authored Apr 24, 2024
2 parents 68a688a + 0fcd24a commit b35529f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions infra/terraform/modules/govtool-ec2/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -193,3 +193,12 @@ resource "aws_route53_record" "frontend" {
ttl = 180
records = [aws_eip.govtool.public_ip]
}

resource "aws_route53_record" "participation" {
count = var.app_env == "beta" ? 0 : 1
zone_id = var.dns_zone_id
name = "${var.custom_subdomain != "" ? "participation.${var.custom_subdomain}" : "participation.${var.app_env}-${var.cardano_network}"}"
type = "A"
ttl = 180
records = [aws_eip.govtool.public_ip]
}

0 comments on commit b35529f

Please sign in to comment.