-
Notifications
You must be signed in to change notification settings - Fork 9
/
route53_pca.tf
32 lines (26 loc) · 1.27 KB
/
route53_pca.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
# ------------------------------------------------------------------------------
# Resource records that support the Continuous Phishing Campaign Assessment
# (Con-PCA) application.
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# Production
# ------------------------------------------------------------------------------
resource "aws_route53_record" "pca_production_NS" {
provider = aws.route53resourcechange
name = data.terraform_remote_state.pca_production.outputs.hosted_zone_name
records = data.terraform_remote_state.pca_production.outputs.hosted_zone_name_servers
ttl = 86400
type = "NS"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}
# ------------------------------------------------------------------------------
# Staging
# ------------------------------------------------------------------------------
resource "aws_route53_record" "pca_staging_NS" {
provider = aws.route53resourcechange
name = data.terraform_remote_state.pca_staging.outputs.hosted_zone_name
records = data.terraform_remote_state.pca_staging.outputs.hosted_zone_name_servers
ttl = 30
type = "NS"
zone_id = aws_route53_zone.cyber_dhs_gov.zone_id
}