-
Notifications
You must be signed in to change notification settings - Fork 9
/
route53_readysetcyber_app.tf
168 lines (139 loc) · 5.86 KB
/
route53_readysetcyber_app.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
# ------------------------------------------------------------------------------
# Resource records that support ReadySetCyber site cloudfront endpoints and application.
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Prod entries
# ------------------------------------------------------------------------------
# The hosted_zone_id for the below records comes from https://docs.aws.amazon.com/general/latest/gr/elb.html
# (ALBs in us-gov-west-1 region)
resource "aws_route53_record" "ready_set_cyber_prod_digicert_CAA" {
provider = aws.route53resourcechange
name = "readysetcyber.${aws_route53_zone.cyber_dhs_gov.name}"
records = ["0 issue \"digicert.com\""]
ttl = 3600
type = "CAA"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}
# The hosted_zone_id for the below records comes from https://docs.aws.amazon.com/general/latest/gr/elb.html
# (ALBs in us-gov-west-1 region)
resource "aws_route53_record" "ready_set_cyber_prod_A" {
provider = aws.route53resourcechange
alias {
name = "crossfeed-prod-1638162291.us-gov-west-1.elb.amazonaws.com."
evaluate_target_health = false
zone_id = "Z33AYJ8TM3BH4J"
}
name = "readysetcyber.${aws_route53_zone.cyber_dhs_gov.name}"
type = "A"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}
resource "aws_route53_record" "ready_set_cyber_prod_AAAA" {
provider = aws.route53resourcechange
alias {
name = "crossfeed-prod-1638162291.us-gov-west-1.elb.amazonaws.com."
evaluate_target_health = false
zone_id = "Z33AYJ8TM3BH4J"
}
name = "readysetcyber.${aws_route53_zone.cyber_dhs_gov.name}"
type = "AAAA"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}
# ------------------------------------------------------------------------------
# Prod API entries
# ------------------------------------------------------------------------------
resource "aws_route53_record" "api_ready_set_cyber_prod_digicert_CAA" {
provider = aws.route53resourcechange
name = "api.readysetcyber.${aws_route53_zone.cyber_dhs_gov.name}"
records = ["0 issue \"digicert.com\""]
ttl = 3600
type = "CAA"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}
resource "aws_route53_record" "api_ready_set_cyber_prod_A" {
provider = aws.route53resourcechange
alias {
name = "crossfeed-prod-1638162291.us-gov-west-1.elb.amazonaws.com."
evaluate_target_health = false
zone_id = "Z33AYJ8TM3BH4J"
}
name = "api.readysetcyber.${aws_route53_zone.cyber_dhs_gov.name}"
type = "A"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}
resource "aws_route53_record" "api_ready_set_cyber_prod_AAAA" {
provider = aws.route53resourcechange
alias {
name = "crossfeed-prod-1638162291.us-gov-west-1.elb.amazonaws.com."
evaluate_target_health = false
zone_id = "Z33AYJ8TM3BH4J"
}
name = "api.readysetcyber.${aws_route53_zone.cyber_dhs_gov.name}"
type = "AAAA"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}
# ------------------------------------------------------------------------------
# Staging entries
# ------------------------------------------------------------------------------
resource "aws_route53_record" "ready_set_cyber_staging_digicert_CAA" {
provider = aws.route53resourcechange
name = "staging.readysetcyber.${aws_route53_zone.cyber_dhs_gov.name}"
records = ["0 issue \"digicert.com\""]
ttl = 3600
type = "CAA"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}
resource "aws_route53_record" "staging_ready_set_cyber_staging_A" {
provider = aws.route53resourcechange
alias {
name = "crossfeed-stage-1792947306.us-gov-west-1.elb.amazonaws.com."
evaluate_target_health = false
zone_id = "Z33AYJ8TM3BH4J"
}
name = "staging.readysetcyber.${aws_route53_zone.cyber_dhs_gov.name}"
type = "A"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}
resource "aws_route53_record" "staging_ready_set_cyber_prod_AAAA" {
provider = aws.route53resourcechange
alias {
name = "crossfeed-stage-1792947306.us-gov-west-1.elb.amazonaws.com."
evaluate_target_health = false
zone_id = "Z33AYJ8TM3BH4J"
}
name = "staging.readysetcyber.${aws_route53_zone.cyber_dhs_gov.name}"
type = "AAAA"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}
# ------------------------------------------------------------------------------
# Staging API entries
# ------------------------------------------------------------------------------
resource "aws_route53_record" "api_ready_set_cyber_staging_digicert_CAA" {
provider = aws.route53resourcechange
name = "api.staging.readysetcyber.${aws_route53_zone.cyber_dhs_gov.name}"
records = ["0 issue \"digicert.com\""]
ttl = 3600
type = "CAA"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}
resource "aws_route53_record" "api_staging_ready_set_cyber_staging_A" {
provider = aws.route53resourcechange
alias {
name = "crossfeed-stage-1792947306.us-gov-west-1.elb.amazonaws.com."
evaluate_target_health = false
zone_id = "Z33AYJ8TM3BH4J"
}
name = "api.staging.readysetcyber.${aws_route53_zone.cyber_dhs_gov.name}"
type = "A"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}
resource "aws_route53_record" "api_staging_ready_set_cyber_staging_AAAA" {
provider = aws.route53resourcechange
alias {
name = "crossfeed-stage-1792947306.us-gov-west-1.elb.amazonaws.com."
evaluate_target_health = false
zone_id = "Z33AYJ8TM3BH4J"
}
name = "api.staging.readysetcyber.${aws_route53_zone.cyber_dhs_gov.name}"
type = "AAAA"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}