-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutput.tf
14 lines (13 loc) · 833 Bytes
/
output.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
output "aviatrix_firenet" {
description = "The Aviatrix firenet object with all of it's attributes"
value = aviatrix_firenet.firenet
}
output "aviatrix_firewall_instance" {
description = "A list with the created firewall instances and their attributes"
value = (
local.is_aviatrix ? #Evaluate local.is_aviatrix
concat(aviatrix_gateway.egress_instance_1.*, aviatrix_gateway.egress_instance_2.*) #Output if local.is_aviatrix is true
: #
concat(aviatrix_firewall_instance.firewall_instance_1.*, aviatrix_firewall_instance.firewall_instance_2.*) #Output if local.is_aviatrix is false
)
}