-
Notifications
You must be signed in to change notification settings - Fork 4
/
outputs.tf
74 lines (62 loc) · 2.31 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
output "id" {
description = "Device identifier"
value = equinix_network_device.this.uuid
}
output "status" {
description = "Device provisioning status"
value = equinix_network_device.this.status
}
output "license_status" {
description = "Device license status"
value = equinix_network_device.this.license_status
}
output "account_number" {
description = "Device billing account number"
value = equinix_network_device.this.account_number
}
output "cpu_count" {
description = "Device CPU cores count"
value = data.equinix_network_device_platform.this.core_count
}
output "memory" {
description = "Device memory amount"
value = join(" ", [data.equinix_network_device_platform.this.memory, data.equinix_network_device_platform.this.memory_unit])
}
output "software_version" {
description = "Device software version"
value = data.equinix_network_device_software.this.version
}
output "region" {
description = "Device region"
value = equinix_network_device.this.region
}
output "ibx" {
description = "Device IBX center"
value = equinix_network_device.this.ibx
}
output "ssh_ip_address" {
description = "Device SSH interface IP address"
value = equinix_network_device.this.ssh_ip_address
}
output "ssh_ip_fqdn" {
description = "Device SSH interface FQDN"
value = equinix_network_device.this.ssh_ip_fqdn
}
output "interfaces" {
description = "Device interfaces"
value = equinix_network_device.this.interface
}
output "secondary" {
description = "Secondary device attributes"
value = var.secondary.enabled ? {
id = equinix_network_device.this.secondary_device[0].uuid
status = equinix_network_device.this.secondary_device[0].status
license_status = equinix_network_device.this.secondary_device[0].license_status
account_number = equinix_network_device.this.secondary_device[0].account_number
region = equinix_network_device.this.secondary_device[0].region
ibx = equinix_network_device.this.secondary_device[0].ibx
ssh_ip_address = equinix_network_device.this.secondary_device[0].ssh_ip_address
ssh_ip_fqdn = equinix_network_device.this.secondary_device[0].ssh_ip_fqdn
interfaces = equinix_network_device.this.secondary_device[0].interface
} : null
}