-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathoutputs.tf
67 lines (58 loc) · 1.76 KB
/
outputs.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
output "arn" {
description = "The Amazon Resource Name (ARN) of the Hosted Zone."
value = aws_route53_zone.public.arn
}
output "id" {
description = "The Hosted Zone ID. This can be referenced by zone records."
value = aws_route53_zone.public.id
}
output "name" {
description = "The name of the Hosted Zone."
value = aws_route53_zone.public.name
}
output "namespace" {
description = "The namespace of the Hosted Zone."
value = var.namespace
}
output "description" {
description = "A description for the Hosted Zone."
value = aws_route53_zone.public.comment
}
output "primary_name_server" {
description = "The Route 53 name server that created the SOA record."
value = aws_route53_zone.public.primary_name_server
}
output "name_servers" {
description = "A list of name servers in associated (or default) delegation set."
value = aws_route53_zone.public.name_servers
}
output "delegation_set" {
description = "The ID of the assigned delegation set."
value = aws_route53_zone.public.delegation_set_id
}
output "logging" {
description = <<EOF
A configuration for query logging of the Route53 Hosted Zone.
`cloudwatch` - The configuration for Route53 query logs to CloudWatch Logs.
EOF
value = {
cloudwatch = {
enabled = length(aws_route53_query_log.this) > 0
log_group = one(aws_route53_query_log.this[*].cloudwatch_log_group_arn)
}
}
}
output "ns_records" {
description = <<EOF
A map of `NS` records for the zone. Each key of the map is the record name.
`values` - A list of the record values
`ttl` - The TTL of the record.
EOF
value = {
for name, record in aws_route53_record.ns :
name => {
values = record.records
ttl = record.ttl
}
}
}