generated from equinix-labs/terraform-equinix-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
79 lines (66 loc) · 3 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
output "fabric_connection_uuid" {
description = "Unique identifier of the connection."
value = module.equinix-fabric-connection.primary_connection.uuid
}
output "fabric_connection_name" {
description = "Name of the connection."
value = module.equinix-fabric-connection.primary_connection.name
}
output "fabric_connection_status" {
description = "Connection provisioning status."
value = tolist(module.equinix-fabric-connection.primary_connection.operation)[0].equinix_status
}
output "fabric_connection_provider_status" {
description = "Connection provisioning provider status."
value = tolist(module.equinix-fabric-connection.primary_connection.operation)[0].provider_status
}
output "fabric_connection_speed" {
description = "Connection speed in Mbps"
value = module.equinix-fabric-connection.primary_connection.bandwidth
}
output "fabric_connection_seller_metro" {
description = "Connection seller metro code."
value = flatten([for i in module.equinix-fabric-connection.primary_connection.z_side : [for j in i.access_point : [for k in j.location : k.metro_code]]])[0]
}
output "fabric_connection_seller_region" {
description = "Connection seller region."
value = flatten([for i in module.equinix-fabric-connection.primary_connection.z_side : [for j in i.access_point : j.seller_region]])[0]
}
output "network_edge_bgp_state" {
description = <<EOF
Network Edge device BGP peer state. Terraform will wait for 'network_edge_bgp_provisioning_status' to be PROVISIONED
but it will not wait for the BGP session to be established and can return an empty result in first apply. To know
current BGP state it will be required to execute 'terraform refresh'.
EOF
value = try(equinix_network_bgp.this[0].state, null)
}
output "network_edge_bgp_provisioning_status" {
description = "Network Edge device BGP peering configuration provisioning status."
value = try(equinix_network_bgp.this[0].provisioning_status, null)
}
output "gcp_interconnect_id" {
description = "Google Cloud Interconnect/VLAN attachment ID."
value = google_compute_interconnect_attachment.this.id
}
output "gcp_cloud_router_id" {
description = "Google Cloud Router ID."
value = local.gcp_compute_router_id
}
output "gcp_cloud_router_name" {
description = "Google Cloud Router Name."
value = var.gcp_compute_create_router ? google_compute_router.this[0].name : data.google_compute_router.this[0].name
}
output "gcp_cloud_router_ip_address" {
description = <<EOF
Google Cloud Router IPv4 address + prefix length to be configured on CLOUD Router Interface for the interconnect
attachment.
EOF
value = try(local.gcp_bgp_addresses.cloud_router_ip, null)
}
output "gcp_customer_router_ip_address" {
description = <<EOF
Google Cloud Router IPv4 address + prefix length to be configured on CUSTOMER router or Network Edge device subinterface for
the interconnect attachment.
EOF
value = try(local.gcp_bgp_addresses.customer_router_ip, null)
}