1
0
Fork 0

move output into separate file

This commit is contained in:
Von Random 2024-10-23 00:10:19 +03:00
parent ddd98a76ec
commit e4bd07fe4a
2 changed files with 9 additions and 10 deletions

10
main.tf
View file

@ -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
View 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
})
}