diff --git a/terraform/statcan.alpha.canada.ca.tf b/terraform/statcan.alpha.canada.ca.tf index 642bdb3..791c8e2 100644 --- a/terraform/statcan.alpha.canada.ca.tf +++ b/terraform/statcan.alpha.canada.ca.tf @@ -81,4 +81,44 @@ resource "aws_route53_record" "_acme-challenge-recensement-alpha-canada-ca-CNAME join(".", [aws_route53_record.recensement-alpha-canada-ca-CNAME.name, local.challenges_subdomain]) ] ttl = "300" -} \ No newline at end of file +} + +resource "aws_route53_record" "hazard-risk-search-ps-alpha-canada-ca-CNAME" { + zone_id = aws_route53_zone.alpha-canada-ca-public.zone_id + name = "hazard-risk-search.ps.alpha.canada.ca" + type = "CNAME" + records = [ + "flood-risk-portal.prod.cloud.statcan.ca" + ] + ttl = "300" +} + +resource "aws_route53_record" "_acme-challenge-hazard-risk-search-ps-alpha-canada-ca-CNAME" { + zone_id = aws_route53_zone.alpha-canada-ca-public.zone_id + name = join(".", [local.acme_challenge, aws_route53_record.hazard-risk-search-ps-alpha-canada-ca-CNAME.name]) + type = "CNAME" + records = [ + join(".", [aws_route53_record.hazard-risk-search-ps-alpha-canada-ca-CNAME.name, local.challenges_subdomain]) + ] + ttl = "300" +} + +resource "aws_route53_record" "recherche-aleas-risques-ps-alpha-canada-ca-CNAME" { + zone_id = aws_route53_zone.alpha-canada-ca-public.zone_id + name = "recherche-aleas-risques.ps.alpha.canada.ca" + type = "CNAME" + records = [ + "flood-risk-portal.prod.cloud.statcan.ca" + ] + ttl = "300" +} + +resource "aws_route53_record" "_acme-challenge-recherche-aleas-risques-ps-alpha-canada-ca-CNAME" { + zone_id = aws_route53_zone.alpha-canada-ca-public.zone_id + name = join(".", [local.acme_challenge, aws_route53_record.recherche-aleas-risques-ps-alpha-canada-ca-CNAME.name]) + type = "CNAME" + records = [ + join(".", [aws_route53_record.recherche-aleas-risques-ps-alpha-canada-ca-CNAME.name, local.challenges_subdomain]) + ] + ttl = "300" +}