Skip to content

Commit

Permalink
feat: add CNAMEs for Flood Risk Portal
Browse files Browse the repository at this point in the history
Add CNAMEs to the StatsCan Flood Risk Portal.
  • Loading branch information
patheard committed Nov 8, 2024
1 parent 293823b commit 50838f5
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion terraform/statcan.alpha.canada.ca.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

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"
}

0 comments on commit 50838f5

Please sign in to comment.