-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathoutputs.tf
84 lines (70 loc) · 2.52 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
output "map1" {
description = "A 0- or 1-item list of created certificate_map 1 resource"
value = google_certificate_manager_certificate_map.m1
}
output "map2" {
description = "A 0- or 1-item list of created certificate_map 2 resource"
value = google_certificate_manager_certificate_map.m2
}
output "map-id1" {
description = (
"A 0- or 1-item list of cert map 1's .id formatted to use in LB resources" )
value = local.id1
}
output "map-id2" {
description = (
"A 0- or 1-item list of cert map 2's .id formatted to use in LB resources" )
value = local.id2
}
output "keys" {
description = "List of hostnames, used as keys in the below maps"
value = local.keys
}
output "dns-auths" {
description = "A map of DNS authorizations created"
value = google_certificate_manager_dns_authorization.a
}
output "dns-records" {
description = "A map of DNS records created to authorize certificates"
value = google_dns_record_set.d
}
output "dns-certs" {
description = "A map of DNS-authorized certificates created"
value = google_certificate_manager_certificate.dns
}
output "lb-certs" {
description = "A map of LB-authorized certificates created"
value = google_certificate_manager_certificate.lb
}
output "primary1" {
description = "A 0- or 1-entry list with the PRIMARY map 1 entry"
value = [ for h, r in merge(
google_certificate_manager_certificate_map_entry.dns1p,
google_certificate_manager_certificate_map_entry.lb1p,
google_certificate_manager_certificate_map_entry.ext1p,
) : r ]
}
output "primary2" {
description = "A 0- or 1-entry list with the PRIMARY map 2 entry"
value = [ for h, r in merge(
google_certificate_manager_certificate_map_entry.dns2p,
google_certificate_manager_certificate_map_entry.lb2p,
google_certificate_manager_certificate_map_entry.ext2p,
) : r ]
}
output "others1" {
description = "A map of certificate map 1 entries for non-PRIMARY certs"
value = merge(
google_certificate_manager_certificate_map_entry.dns1,
google_certificate_manager_certificate_map_entry.lb1,
google_certificate_manager_certificate_map_entry.ext1,
)
}
output "others2" {
description = "A map of certificate map 2 entries for non-PRIMARY certs"
value = merge(
google_certificate_manager_certificate_map_entry.dns2,
google_certificate_manager_certificate_map_entry.lb2,
google_certificate_manager_certificate_map_entry.ext2,
)
}