-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
45 lines (36 loc) · 1.37 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
output "fgt_mgmt_eips" {
value = [for eip in google_compute_address.pub : eip.address ]
description = "Public management IP addresses of FortiGate VMs"
}
output "fgt_password" {
value = google_compute_instance.fgt_vm[0].instance_id
description = "Initial admin password"
}
output "fgt_self_links" {
value = google_compute_instance.fgt_vm[*].self_link
description = "List of 2 self-links to FortiGate VMs"
}
output "fgt_umigs" {
value = google_compute_instance_group.fgt_umigs[*].self_link
description = "List of 2 self-links to unmanaged instance groups with FortiGates"
}
output "elb_bes" {
value = google_compute_region_backend_service.elb_bes.self_link
description = "Self-link to ELB backend service. "
}
output "api_key" {
value = length(var.api_accprofile) > 0 ? random_string.api_key.result : ""
description = "FortiGate API access token "
}
output "ilb_addresses" {
value = { for indx, ilb in google_compute_address.ilb : indx => ilb.address }
description = "Address of ILB. Can be used for PBR creation"
}
output "ilb_ids" {
value = { for indx, ilb in google_compute_forwarding_rule.ilb : indx => ilb.id }
description = "Address of ILB. Can be used for route creation"
}
output "frontends" {
value = local.eip_all
description = "Map of all external IP addresses bound to FortiGate cluster"
}