move output into separate file
This commit is contained in:
parent
ddd98a76ec
commit
e4bd07fe4a
2 changed files with 9 additions and 10 deletions
10
main.tf
10
main.tf
|
@ -80,13 +80,3 @@ resource "yandex_lb_network_load_balancer" "balancer1" {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
output "lb-ip" {
|
||||
value = yandex_lb_network_load_balancer.balancer1.listener
|
||||
}
|
||||
|
||||
output "vm-ips" {
|
||||
value = tomap({
|
||||
for name, vm in yandex_compute_instance.vm : name => vm.network_interface.0.nat_ip_address
|
||||
})
|
||||
}
|
||||
|
|
9
output.tf
Normal file
9
output.tf
Normal file
|
@ -0,0 +1,9 @@
|
|||
output "lb-ip" {
|
||||
value = yandex_lb_network_load_balancer.balancer1.listener
|
||||
}
|
||||
|
||||
output "vm-ips" {
|
||||
value = tomap({
|
||||
for name, vm in yandex_compute_instance.vm : name => vm.network_interface.0.nat_ip_address
|
||||
})
|
||||
}
|
Loading…
Reference in a new issue