From e4bd07fe4a770999fb456e6578f62c12bc40f0ed Mon Sep 17 00:00:00 2001 From: Von Random Date: Wed, 23 Oct 2024 00:10:19 +0300 Subject: [PATCH] move output into separate file --- main.tf | 10 ---------- output.tf | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) create mode 100644 output.tf 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 + }) +}