diff --git a/main.tf b/main.tf index b231776..a45ab13 100644 --- a/main.tf +++ b/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 - }) -} diff --git a/output.tf b/output.tf new file mode 100644 index 0000000..7183801 --- /dev/null +++ b/output.tf @@ -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 + }) +}