cds-snc / dns

DNS Configuration for domains managed by CDS
19 stars 19 forks source link

update statcan.alpha.canada.ca.tf #430

Open PaulMcGlincheyCA opened 2 weeks ago

PaulMcGlincheyCA commented 2 weeks ago

Hi,

My dev team at Statcan would like to deploy an application to the alpha environment. I believe the following bit of code needs to be added to the file statcan.alpha.canada.ca.tf. I can submit a PR if that would be easier.

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

patheard commented 2 weeks ago

If you could put together a PR that would be much appreciated!