Skip to content

Commit

Permalink
use module to handle redirects for 18F Jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld committed Mar 23, 2020
1 parent 64d6f70 commit 35cd59b
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions terraform/18f.gov.tf
Original file line number Diff line number Diff line change
Expand Up @@ -645,20 +645,15 @@ resource "aws_route53_record" "18f_gov_innovation-toolkit-prototype_18f_gov_a" {
}
}

resource "aws_route53_record" "18f_gov_jobs_18f_gov_cname" {
zone_id = "${aws_route53_zone.18f_gov_zone.zone_id}"
name = "jobs.18f.gov."
type = "CNAME"
ttl = 300
records = ["d2o3l1lqmcr15h.cloudfront.net."]
}
module "18f_gov__join_18f_gov_redirect" {
source = "mediapop/redirect/aws"
version = "~> 1.2.0"

resource "aws_route53_record" "18f_gov_join_18f_gov_cname" {
zone_id = "${aws_route53_zone.18f_gov_zone.zone_id}"
name = "join.18f.gov."
type = "CNAME"
ttl = 300
records = ["dpjnqahvua4qy.cloudfront.net"]
domains = {
"18f.gov." = ["jobs.18f.gov", "join.18f.gov"]
}

redirect_to = "https://18f.gsa.gov/join/"
}

resource "aws_route53_record" "18f_gov_lean-product-design_18f_gov_a" {
Expand Down

0 comments on commit 35cd59b

Please sign in to comment.