feat(outputs): add conditions to output in case resources aren't being created
This commit is contained in:
parent
a3468a6279
commit
b1eb7a3e67
18
outputs.tf
18
outputs.tf
@ -1,61 +1,61 @@
|
|||||||
output "frontend_network" {
|
output "frontend_network" {
|
||||||
value = openstack_networking_network_v2.frontend.*
|
value = length(openstack_networking_network_v2.frontend) > 0 ? openstack_networking_network_v2.frontend.* : null
|
||||||
sensitive = false
|
sensitive = false
|
||||||
description = "description"
|
description = "description"
|
||||||
depends_on = []
|
depends_on = []
|
||||||
}
|
}
|
||||||
|
|
||||||
output "frontend_subnet" {
|
output "frontend_subnet" {
|
||||||
value = openstack_networking_subnet_v2.frontend.*
|
value = length(openstack_networking_subnet_v2.frontend) > 0 ? openstack_networking_subnet_v2.frontend.* : null
|
||||||
sensitive = false
|
sensitive = false
|
||||||
description = "description"
|
description = "description"
|
||||||
depends_on = []
|
depends_on = []
|
||||||
}
|
}
|
||||||
|
|
||||||
output "backend_network" {
|
output "backend_network" {
|
||||||
value = openstack_networking_network_v2.backend.*
|
value = length(openstack_networking_network_v2.backend) > 0 ? openstack_networking_network_v2.backend.* : null
|
||||||
sensitive = false
|
sensitive = false
|
||||||
description = "description"
|
description = "description"
|
||||||
depends_on = []
|
depends_on = []
|
||||||
}
|
}
|
||||||
|
|
||||||
output "backend_subnet" {
|
output "backend_subnet" {
|
||||||
value = openstack_networking_subnet_v2.backend.*
|
value = length(openstack_networking_subnet_v2.backend) > 0 ? openstack_networking_subnet_v2.backend.* : null
|
||||||
sensitive = false
|
sensitive = false
|
||||||
description = "description"
|
description = "description"
|
||||||
depends_on = []
|
depends_on = []
|
||||||
}
|
}
|
||||||
|
|
||||||
output "database_network" {
|
output "database_network" {
|
||||||
value = openstack_networking_network_v2.database.*
|
value = length(openstack_networking_network_v2.database) > 0 ? openstack_networking_network_v2.database.* : null
|
||||||
sensitive = false
|
sensitive = false
|
||||||
description = "description"
|
description = "description"
|
||||||
depends_on = []
|
depends_on = []
|
||||||
}
|
}
|
||||||
|
|
||||||
output "database_subnets" {
|
output "database_subnets" {
|
||||||
value = openstack_networking_subnet_v2.database.*
|
value = length(openstack_networking_subnet_v2.database) > 0 ? openstack_networking_subnet_v2.database.* : null
|
||||||
sensitive = false
|
sensitive = false
|
||||||
description = "description"
|
description = "description"
|
||||||
depends_on = []
|
depends_on = []
|
||||||
}
|
}
|
||||||
|
|
||||||
output "frontend_secgroups" {
|
output "frontend_secgroups" {
|
||||||
value = openstack_networking_secgroup_v2.frontend.*
|
value = length(openstack_networking_secgroup_v2.frontend) > 0 ? openstack_networking_secgroup_v2.frontend.* : null
|
||||||
sensitive = false
|
sensitive = false
|
||||||
description = "description"
|
description = "description"
|
||||||
depends_on = []
|
depends_on = []
|
||||||
}
|
}
|
||||||
|
|
||||||
output "backend_secgroups" {
|
output "backend_secgroups" {
|
||||||
value = openstack_networking_secgroup_v2.backend.*
|
value = length(openstack_networking_secgroup_v2.backend) > 0 ? openstack_networking_secgroup_v2.backend.* : null
|
||||||
sensitive = false
|
sensitive = false
|
||||||
description = "description"
|
description = "description"
|
||||||
depends_on = []
|
depends_on = []
|
||||||
}
|
}
|
||||||
|
|
||||||
output "database_secgroups" {
|
output "database_secgroups" {
|
||||||
value = openstack_networking_secgroup_v2.database.*
|
value = length(openstack_networking_secgroup_v2.database) > 0 ? openstack_networking_secgroup_v2.database.* : null
|
||||||
sensitive = false
|
sensitive = false
|
||||||
description = "description"
|
description = "description"
|
||||||
depends_on = []
|
depends_on = []
|
||||||
|
Loading…
Reference in New Issue
Block a user