forked from 18F/dns
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdigital.gov.tf
614 lines (545 loc) · 20.8 KB
/
digital.gov.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
# ------------------------------------------
# WELCOME to the DNS records for Digital.gov
# Before making edits, please reach out to #digitalgov (in TTS Slack) or email digitalgov@gsa.gov
# ------------------------------------------
resource "aws_route53_zone" "digital_toplevel" {
name = "digital.gov"
tags = {
Project = "dns"
}
}
resource "aws_route53_record" "digital_gov_apex" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "digital.gov."
type = "A"
alias {
name = "d2q1i25any8vwy.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "digital_gov_apex_aaaa" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "digital.gov."
type = "AAAA"
alias {
name = "d2q1i25any8vwy.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# www.digital.gov — redirects to digital.gov through pages_redirect
resource "aws_route53_record" "digital_gov_www" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "www.digital.gov."
type = "A"
alias {
name = "d11gdxqvugzxkr.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "digital_gov_www_aaaa" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "www.digital.gov."
type = "AAAA"
alias {
name = "d11gdxqvugzxkr.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# workflow.digitalgov.gov
# redirects to digital.gov/workflow
#module "digital_gov__workflow_digital_gov_redirect" {
# source = "mediapop/redirect/aws"
# version = "1.3.0"
# domains = {
# "digital.gov." = ["workflow.digital.gov"]
# }
# redirect_to = "https://digital.gov/workflow"
#}
# USWDS - U.S. Web Design System -------------------------------
# designsystem.digital.gov — A
# (Master site in Federalist)
resource "aws_route53_record" "designsystem_digital_gov_a" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "designsystem.digital.gov."
type = "A"
alias {
name = "dlu3fkwowya06.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# designsystem.digital.gov — AAAA
# (Master site in Federalist)
resource "aws_route53_record" "designsystem_digital_gov_aaaa" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "designsystem.digital.gov."
type = "AAAA"
alias {
name = "dlu3fkwowya06.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# v2.designsystem.digital.gov — CNAME -------------------------------
# (Redirects to designsystem.digital.gov via "pages redirect")
resource "aws_route53_record" "v2_designsystem_digital_gov_cname" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "v2.designsystem.digital.gov."
type = "CNAME"
ttl = 120
records = ["v2.designsystem.digital.gov.external-domains-production.cloud.gov."]
}
# v2.designsystem.digital.gov acme challenge — CNAME -------------------------------
resource "aws_route53_record" "acme_challenge_v2_designsystem_digital_gov_cname" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "_acme-challenge.v2.designsystem.digital.gov."
type = "CNAME"
ttl = 120
records = ["_acme-challenge.v2.designsystem.digital.gov.external-domains-production.cloud.gov."]
}
# v1.designsystem.digital.gov — A -------------------------------
# (DEMO site in Federalist)
resource "aws_route53_record" "v1_designsystem_digital_gov_a" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "v1.designsystem.digital.gov."
type = "A"
alias {
name = "d5bhevr9bklr9.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "v1_designsystem_digital_gov_aaaa" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "v1.designsystem.digital.gov."
type = "AAAA"
alias {
name = "d5bhevr9bklr9.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# components.designsystem.digital.gov — CNAME -------------------------------
resource "aws_route53_record" "components_designsystem_digital_gov_cname" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "components.designsystem.digital.gov."
type = "CNAME"
ttl = 1800
records = ["components.designsystem.digital.gov.external-domains-production.cloud.gov."]
}
# _acme-challenge.components.designsystem.digital.gov — CNAME -------------------------------
resource "aws_route53_record" "_acme-challenge_components_designsystem_digital_gov_cname" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "_acme-challenge.components.designsystem.digital.gov."
type = "CNAME"
ttl = 1800
records = ["_acme-challenge.components.designsystem.digital.gov.external-domains-production.cloud.gov."]
}
# public-sans.digital.gov — A
resource "aws_route53_record" "public_sans_digital_gov_a" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "public-sans.digital.gov."
type = "A"
alias {
name = "d30jruftdogur6.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "public_sans_digital_gov_aaaa" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "public-sans.digital.gov."
type = "AAAA"
alias {
name = "d30jruftdogur6.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# accessibility.digital.gov — A -------------------------------
resource "aws_route53_record" "accessibility_digital_gov_a" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "accessibility.digital.gov."
type = "A"
alias {
name = "d2hlc5rjmtb40x.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "accessibility_digital_gov_aaaa" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "accessibility.digital.gov."
type = "AAAA"
alias {
name = "d2hlc5rjmtb40x.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# demo.accessibility.digital.gov — A -------------------------------
resource "aws_route53_record" "demo_accessibility_digital_gov_a" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "demo.accessibility.digital.gov."
type = "A"
alias {
name = "dnt48lkpo0ew7.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "demo_accessibility_digital_gov_aaaa" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "demo.accessibility.digital.gov."
type = "AAAA"
alias {
name = "dnt48lkpo0ew7.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# emerging.digital.gov — CNAME -------------------------------
resource "aws_route53_record" "emerging_digital_gov_cname" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "emerging.digital.gov."
type = "CNAME"
ttl = 1800
records = ["emerging.digital.gov.external-domains-production.cloud.gov."]
}
# _acme-challenge.emerging.digital.gov — CNAME -------------------------------
resource "aws_route53_record" "_acme-challenge_emerging_digital_gov_cname" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "_acme-challenge.emerging.digital.gov."
type = "CNAME"
ttl = 1800
records = ["_acme-challenge.emerging.digital.gov.external-domains-production.cloud.gov."]
}
# pra.digital.gov — A -------------------------------
resource "aws_route53_record" "pra_digital_gov_a" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "pra.digital.gov."
type = "A"
alias {
name = "d3vwm5h0acan67.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "pra_digital_gov_aaaa" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "pra.digital.gov."
type = "AAAA"
alias {
name = "d3vwm5h0acan67.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# demo.pra.digital.gov — A -------------------------------
resource "aws_route53_record" "demo_pra_digital_gov_a" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "demo.pra.digital.gov."
type = "A"
alias {
name = "d18cp08a73t0c1.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "demo_pra_digital_gov_aaaa" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "demo.pra.digital.gov."
type = "AAAA"
alias {
name = "d18cp08a73t0c1.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# Touchpoints ------------------------------------------------------------------
# A simple, flexible, and convenient way to collect customer feedback.
# Contact feedback-analytics@gsa.gov or digitalgov@gsa.gov
# DEMO Touchpoints Site / Federalist / demo.touchpoints.digital.gov — A
resource "aws_route53_record" "demo_touchpoints_digital_gov_a" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "demo.touchpoints.digital.gov."
type = "A"
alias {
name = "dcxk3q3d8gzx7.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "demo_touchpoints_digital_gov_aaaa" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "demo.touchpoints.digital.gov."
type = "AAAA"
alias {
name = "dcxk3q3d8gzx7.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# DEMO Touchpoints APP / Amazon SES Verification TXT Record
# demo.touchpoints.digital.gov
resource "aws_route53_record" "demo_touchpoints_digital_gov_verification_txt" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "_amazonses.demo-app.touchpoints.digital.gov"
type = "TXT"
ttl = "300"
records = [
"hzTUt6Q3kaLSAw5VleJgk8Rt7kikHwGMLeZd+QMHSEY="
]
}
# DEMO Touchpoints APP / Amazon SES CNAME
# demo-app.touchpoints.digital.gov — CNAME + DKIM 1 of 3
# Proof of ownership over the domain
resource "aws_route53_record" "demo_app_touchpoints_digital_gov_ses_cname_1" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "hg7wfopagu3tgfjnqijxrx7gs34ihjo5._domainkey.demo-app.touchpoints.digital.gov"
type = "CNAME"
ttl = 1800
records = ["hg7wfopagu3tgfjnqijxrx7gs34ihjo5.dkim.amazonses.com"]
}
# DEMO Touchpoints APP / Amazon SES CNAME for email address feedback-analytics@
# demo-app.touchpoints.digital.gov — CNAME + DKIM 1 of 3
# Proof of ownership over the email address
resource "aws_route53_record" "demo_app_touchpoints_digital_gov_ses_cname_feedback_analytics_1" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "isqdr7f2pc3xk7e47vrh2j2dcuqh26f4._domainkey.gsa.gov"
type = "CNAME"
ttl = 1800
records = ["isqdr7f2pc3xk7e47vrh2j2dcuqh26f4.dkim.amazonses.com"]
}
resource "aws_route53_record" "demo_app_touchpoints_digital_gov_ses_cname_feedback_analytics_2" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "e3pofe6g2od3r7iz5cb3uuamzqoswivr._domainkey.gsa.gov"
type = "CNAME"
ttl = 1800
records = ["e3pofe6g2od3r7iz5cb3uuamzqoswivr.dkim.amazonses.com"]
}
resource "aws_route53_record" "demo_app_touchpoints_digital_gov_ses_cname_feedback_analytics_3" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "4cxntmmscgkefitlpux7uuf7qvong7br._domainkey.gsa.gov"
type = "CNAME"
ttl = 1800
records = ["4cxntmmscgkefitlpux7uuf7qvong7br.dkim.amazonses.com"]
}
# DEMO Touchpoints APP / Amazon SES CNAME
# demo-app.touchpoints.digital.gov — CNAME + DKIM 2 of 3
# Proof of ownership over the domain
resource "aws_route53_record" "demo_app_touchpoints_digital_gov_ses_cname_2" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "6k4bacuvswoo77zsfpgg22c456xkcm2d._domainkey.demo-app.touchpoints.digital.gov"
type = "CNAME"
ttl = 1800
records = ["6k4bacuvswoo77zsfpgg22c456xkcm2d.dkim.amazonses.com"]
}
# DEMO Touchpoints APP / Amazon SES CNAME
# demo-app.touchpoints.digital.gov — CNAME + DKIM 3 of 3
# Proof of ownership over the domain
resource "aws_route53_record" "demo_app_touchpoints_digital_gov_ses_cname_3" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "frvj7kknqxwqaoypz5w5l54yirxtqeue._domainkey.demo-app.touchpoints.digital.gov"
type = "CNAME"
ttl = 1800
records = ["frvj7kknqxwqaoypz5w5l54yirxtqeue.dkim.amazonses.com"]
}
# DEMO Touchpoints APP / MX Records
# demo.app.touchpoints.digital.gov
resource "aws_route53_record" "demo_app_touchpoints_digital_gov_mx" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "demo-app.touchpoints.digital.gov."
type = "MX"
ttl = "600"
records = [
"10 inbound-smtp.us-east-1.amazonaws.com"
]
}
# Touchpoints Site / Federalist / touchpoints.digital.gov — A
resource "aws_route53_record" "touchpoints_digital_gov_a" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "touchpoints.digital.gov."
type = "A"
alias {
name = "d5n0pmq4ueiac.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
resource "aws_route53_record" "touchpoints_digital_gov_aaaa" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "touchpoints.digital.gov."
type = "AAAA"
alias {
name = "d5n0pmq4ueiac.cloudfront.net."
zone_id = local.cloud_gov_cloudfront_zone_id
evaluate_target_health = false
}
}
# Touchpoints APP / Amazon SES Verification TXT Record
# touchpoints.digital.gov
resource "aws_route53_record" "touchpoints_digital_gov_verification_txt" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "_amazonses.app.touchpoints.digital.gov"
type = "TXT"
ttl = "300"
records = [
"r3nlrOyTmleqQm6yXXyHqEffx6FC3vtWnv9UPMhkADw="
]
}
# Touchpoints Staging APP / Amazon SES Verification TXT Record
resource "aws_route53_record" "touchpoints_staging_aws_ses" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "_amazonses.touchpoints-staging.app.cloud.gov"
type = "TXT"
ttl = 120
records = [
"FCYaHGmDC96KOetecQ23s3gKA6Z7TJ6PNQATBQmLPM8="
]
}
# Touchpoints Staging APP / 3 cnames to enable DKIM for Amazon SES -------------
# DKIM 1 of 3
resource "aws_route53_record" "touchpoints_staging_digital_gov_ses_cname_1" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "26hqif4fsgvtyuqksytfsw5pjb22xoxj._domainkey.touchpoints-staging.app.cloud.gov"
type = "CNAME"
ttl = 1800
records = ["26hqif4fsgvtyuqksytfsw5pjb22xoxj.dkim.amazonses.com"]
}
# DKIM 2 of 3
resource "aws_route53_record" "touchpoints_staging_digital_gov_ses_cname_2" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "vceeiyemjswgbeegriak3wci7gnvxg2v._domainkey.touchpoints-staging.app.cloud.gov"
type = "CNAME"
ttl = 1800
records = ["vceeiyemjswgbeegriak3wci7gnvxg2v.dkim.amazonses.com"]
}
# DKIM 3 of 3
resource "aws_route53_record" "touchpoints_staging_digital_gov_ses_cname_3" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "w5yzy55zindfay2hlzgzj7znigctbpyb._domainkey.touchpoints-staging.app.cloud.gov"
type = "CNAME"
ttl = 1800
records = ["w5yzy55zindfay2hlzgzj7znigctbpyb.dkim.amazonses.com"]
}
# Touchpoints APP / 3 cnames to enable DKIM for Amazon SES ---------------------
# DKIM 1 of 3
resource "aws_route53_record" "touchpoints_digital_gov_ses_cname_1" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "qqtoqzlc5a24irzufsu4lbdpoc3mvr3n._domainkey.app.touchpoints.digital.gov"
type = "CNAME"
ttl = 1800
records = ["qqtoqzlc5a24irzufsu4lbdpoc3mvr3n.dkim.amazonses.com"]
}
# Touchpoints APP / Amazon SES CNAME
# DKIM 2 of 3
resource "aws_route53_record" "touchpoints_digital_gov_ses_cname_2" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "4dh5jgv5chdo2q3axkftnini7j7xkdjx._domainkey.app.touchpoints.digital.gov"
type = "CNAME"
ttl = 1800
records = ["4dh5jgv5chdo2q3axkftnini7j7xkdjx.dkim.amazonses.com"]
}
# Touchpoints APP / Amazon SES CNAME
# DKIM 3 of 3
resource "aws_route53_record" "touchpoints_digital_gov_ses_cname_3" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "pwa5cvp3cde3aghrojag7ketcjaeytp2._domainkey.app.touchpoints.digital.gov"
type = "CNAME"
ttl = 1800
records = ["pwa5cvp3cde3aghrojag7ketcjaeytp2.dkim.amazonses.com"]
}
# Touchpoints APP / MX Records
# app.touchpoints.digital.gov
resource "aws_route53_record" "touchpoints_digital_gov_mx" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "app.touchpoints.digital.gov."
type = "MX"
ttl = "600"
records = [
"10 inbound-smtp.us-east-1.amazonaws.com"
]
}
# Compliance and ACME records -------------------------------
module "digital_gov__email_security" {
source = "./email_security"
zone_id = aws_route53_zone.digital_toplevel.zone_id
txt_records = [
"google-site-verification=Mi2rwVMxdp3eSbZughKvN0M_dwi6WLxMrRSsnLOWyVI",
local.spf_hubspot
]
}
# pra.digital.gov TXT / ACME Challenge
resource "aws_route53_record" "pra_digital_gov__acme-challenge_txt" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "_acme-challenge.pra.digital.gov."
type = "TXT"
ttl = 120
records = ["0VxlpUbA2CXBDx1GKUlr-SujwU0ep9KvGrM0BvE6o4E"]
}
# demo.pra.digital.gov TXT / ACME Challenge
resource "aws_route53_record" "demo_pra_digital_gov__acme-challenge_txt" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "_acme-challenge.demo.pra.digital.gov."
type = "TXT"
ttl = 120
records = ["qzIXA_qU7a3io8b_FRxFVbPBUKZ83XtglufzS7qKnlg"]
}
# demo.touchpoints.digital.gov TXT / ACME Challenge
resource "aws_route53_record" "demo_touchpoints_digital_gov__acme-challenge_txt" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "_acme-challenge.demo.touchpoints.digital.gov."
type = "TXT"
ttl = 120
records = ["n77f2RwJfGyS0NuSm-qIaf0FZEEURhqEACLML32hV0Y"]
}
# touchpoints.digital.gov TXT / ACME Challenge
resource "aws_route53_record" "touchpoints_digital_gov__acme-challenge_txt" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "_acme-challenge.touchpoints.digital.gov."
type = "TXT"
ttl = 120
records = ["Ho5lFIaJK7J44nLyBWGpfMBRNc96eL7-QnMuBII-4Uc"]
}
# =================================
# EMAIL NEWSLETTER (HubSpot)
# Hubspot records for sending email from the digital.gov domain
resource "aws_route53_record" "hubspot1_digital_gov_a" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "hs1._domainkey.digital.gov."
type = "CNAME"
ttl = "300"
records = [
"digital-gov.hs01a.dkim.hubspotemail.net."
]
}
# Hubspot records for sending email from the digital.gov domain
resource "aws_route53_record" "hubspot2_digital_gov_a" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "hs2._domainkey.digital.gov."
type = "CNAME"
ttl = "300"
records = [
"digital-gov.hs01b.dkim.hubspotemail.net."
]
}
# Hubspot TXT records for sending email from the digital.gov domain
resource "aws_route53_record" "hubspot_digital_gov_txt" {
zone_id = aws_route53_zone.digital_toplevel.zone_id
name = "smtpapi._domainkey.digital.gov."
type = "TXT"
ttl = "300"
records = [
"k=rsa; t=s; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDPtW5iwpXVPiH5FzJ7Nrl8USzuY9zqqzjE0D1r04xDN6qwziDnmgcFNNfMewVKN2D1O+2J9N14hRprzByFwfQW76yojh54Xu3uSbQ3JP0A7k8o8GutRF8zbFUA8n0ZH2y0cIEjMliXY4W4LwPA7m4q0ObmvSjhd63O9d8z1XkUBwIDAQAB"
]
}
# END EMAIL NEWSLETTER (HubSpot)
# =================================
output "digital_ns" {
value = aws_route53_zone.digital_toplevel.name_servers
}