-
Notifications
You must be signed in to change notification settings - Fork 5
/
outputs.tf
36 lines (30 loc) · 1000 Bytes
/
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
##############################################################################
# VSI Outputs
##############################################################################
output "id" {
description = "Virtual Server ID"
value = ibm_is_instance.vsi.id
}
output "name" {
description = "Virtual Server name"
value = ibm_is_instance.vsi.name
}
output "primary_ipv4_address" {
description = "Primary ipv4 address for virtual server"
value = ibm_is_instance.vsi.primary_network_interface.0.primary_ipv4_address
}
output "floating_ip" {
description = "Floating IP if created"
value = var.add_floating_ip == true ? ibm_is_floating_ip.vsi_fip[0].address : null
}
output "secondary_floating_ips" {
description = "List of secondary floating IPs"
value = [
for address in ibm_is_floating_ip.secondary_fip :
{
name = address.name
ip = address.address
}
]
}
##############################################################################